summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2013-09-25 19:01:01 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2013-09-25 19:01:01 +0000
commit9f3313109f416f937b8de4c6af06b1d48c8fb377 (patch)
treebda77053580409d559370620078edc71b49698d2 /llvm/lib/IR/Core.cpp
parent25b092835e14dadf8af83be53ab5d549e8b572b2 (diff)
downloadbcm5719-llvm-9f3313109f416f937b8de4c6af06b1d48c8fb377.tar.gz
bcm5719-llvm-9f3313109f416f937b8de4c6af06b1d48c8fb377.zip
Teach DAGCombiner how to canonicalize dags according to the rule
(shl (zext (shr A, X)), X) => (zext (shl (shr A, X), X)). The rule only triggers when there are no other uses of the zext to avoid materializing more instructions. This helps the DAGCombiner understand that the shl/shr sequence can then be converted into an and instruction. llvm-svn: 191393
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud