[PATCH] D39421: [InstCombine] Extracting common and-mask for shift operands of Or instruction
Omer Paparo Bivas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 30 08:24:20 PDT 2017
opaparo created this revision.
Adding an InstCombine transformation:
((V<<C3)&C1) | ((V<<C4)&C2) --> ((V&C5)<<C3) | ((V&C5)<<C4), if C5 = C1>>C3 == C2>>C4, for both logical shifts.
When executed, this transforms five instructions into four, saving one instruction.
Repository:
rL LLVM
https://reviews.llvm.org/D39421
Files:
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/or-or-shift.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39421.120826.patch
Type: text/x-patch
Size: 5213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171030/69090b20/attachment.bin>
More information about the llvm-commits
mailing list