summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-05-12 00:07:05 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-05-12 00:07:05 +0000
commit6c30f49af39da4c39cdab5f303f57f4809218b41 (patch)
treeeb372f6198fa0992596c4b53c3cd5c3cbba3c94a /clang/lib/CodeGen/CodeGenModule.cpp
parentf2305e44675390adc80bae4834672132c12686f5 (diff)
downloadbcm5719-llvm-6c30f49af39da4c39cdab5f303f57f4809218b41.tar.gz
bcm5719-llvm-6c30f49af39da4c39cdab5f303f57f4809218b41.zip
InstCombine: Flip the order of two urem transforms
There are two transforms in visitUrem that conflict with each other. *) One, if a divisor is a power of two, subtracts one from the divisor and turns it into a bitwise-and. *) The other unwraps both operands if they are surrounded by zext instructions. Flipping the order allows the subtraction to go beneath the sign extension. llvm-svn: 181668
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud