aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorJoe Ellis <joe.ellis@arm.com>2021-05-21 09:44:37 +0000
committerJoe Ellis <joe.ellis@arm.com>2021-05-21 10:05:03 +0000
commit5a476987f7d653eb7ce2d8ba0ddf0125f481117e (patch)
treefe9a0b8264c47c868af360f26cf1e168f9f07934 /llvm/lib/Transforms/Utils/Local.cpp
parent35490329cb161029329152a956783ef1873824ea (diff)
downloadllvm-5a476987f7d653eb7ce2d8ba0ddf0125f481117e.zip
llvm-5a476987f7d653eb7ce2d8ba0ddf0125f481117e.tar.gz
llvm-5a476987f7d653eb7ce2d8ba0ddf0125f481117e.tar.bz2
[InstSimplify] Properly constrain {insert,extract}_subvector intrinsic fold
The previous rule: (insert_vector _, (extract_vector X, 0), 0) -> X is not quite correct. The correct fold should be: (insert_vector Y, (extract_vector X, 0), 0) -> X where: Y is X, or Y is undef This commit updates the pattern. Reviewed By: peterwaller-arm, paulwalker-arm Differential Revision: https://reviews.llvm.org/D102699
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions