[PATCH] D15392: [InstCombine] fold trunc ([lshr] (bitcast vector) ) --> extractelement (PR25543)
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 12 09:56:12 PST 2015
spatel updated this revision to Diff 42639.
spatel added a comment.
Patch updated.
After:
http://reviews.llvm.org/rL255399 (combine bitcasts)
http://reviews.llvm.org/rL255433 (canonicalize extractelement(bitcast X))
We don't get any changes for the tests in bitcast.ll and bitcast-bigendian.ll, so this patch should now preserve existing behavior other than adding the trunc -> extract optimization.
http://reviews.llvm.org/D15392
Files:
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/trunc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15392.42639.patch
Type: text/x-patch
Size: 6993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151212/024362da/attachment.bin>
More information about the llvm-commits
mailing list