[PATCH] Added instruction combine to transform few more negative values addition to subtraction
Dinesh Dwivedi
dinesh.d at samsung.com
Thu May 15 08:10:40 PDT 2014
Updated patch to return fully transformed value.
Added additional transforms
(x + (~(y | c) + 1) --> x - (y | c) if c is even
(x + (~((y >> z) | c) + 1) --> x - ((y>>z) | c) if c is even
Is it ok to loose names of instruction during transforms. This patch returns instruction names as %1, %2
http://reviews.llvm.org/D3733
Files:
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/add2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3733.9444.patch
Type: text/x-patch
Size: 7192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140515/3032d059/attachment.bin>
More information about the llvm-commits
mailing list