summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2014-03-07 23:56:30 +0000
committerAdam Nemet <anemet@apple.com>2014-03-07 23:56:30 +0000
commit7f928f14f4235e0cb593857aca4fcedea157c4de (patch)
tree79aba19101feb86f05a1a75f948d199661c22a66 /llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
parent5117f5dffc608eec512bfa89021f78678d8505c3 (diff)
downloadbcm5719-llvm-7f928f14f4235e0cb593857aca4fcedea157c4de.tar.gz
bcm5719-llvm-7f928f14f4235e0cb593857aca4fcedea157c4de.zip
[DAGCombiner] Distribute TRUNC through AND in rotation amount
This is already done for shifts. Allow it for rotations as well. E.g.: (rotl:i32 x, (trunc (and y, 31))) -> (rotl:i32 x, (and (trunc y), 31)) Use the newly factored-out distributeTruncateThroughAnd. With this patch and some X86.td tweaks we should be able to remove redundant masking of the rotation amount like in the example above. HW implicitly performs this masking. The testcase will be added as part of the X86 patch. llvm-svn: 203316
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud