[PATCH] D51236: [InstCombine] Extend (add (sext x), cst) --> (sext (add x, cst')) and (add (zext x), cst) --> (zext (add x, cst')) to work for vectors
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 27 16:15:14 PDT 2018
craig.topper updated this revision to Diff 162774.
craig.topper added a comment.
Switch to m_Constant
https://reviews.llvm.org/D51236
Files:
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/sink-zext.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51236.162774.patch
Type: text/x-patch
Size: 5275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180827/ddc9b132/attachment.bin>
More information about the llvm-commits
mailing list