[DAGCombine] fold (X >>?,exact C1) << C2 --> X << (C2-C1)
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Jun 2015 14:51:36 +0000 (14:51 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Jun 2015 14:51:36 +0000 (14:51 +0000)
commit3791d56da63baf5072fa6ecaa872ace6adbc6892
tree625a4a8a39cd4c53882d9ae6ed6b28226220afcd
parent9cd2a387065b3f3da9adfd71927b669585819298
[DAGCombine] fold (X >>?,exact C1) << C2 --> X << (C2-C1)

Instcombine also does this but many opportunities only become visible
after GEPs are lowered.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240787 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/shift-combine.ll