DAGCombine (shl (anyext x, c)) to (anyext (shl x, c)) if the high bits
authorDan Gohman <gohman@apple.com>
Fri, 23 Jul 2010 18:03:30 +0000 (18:03 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 23 Jul 2010 18:03:30 +0000 (18:03 +0000)
commita4f4d699ec627e798357929295aecd3d55b8d703
tree944ff423164cbdafb494cff07b41174d461f2da3
parent7c98283f0ef74a5663c4c4a0938a344b204336fd
DAGCombine (shl (anyext x, c)) to (anyext (shl x, c)) if the high bits
are not demanded. This often allows the anyext to be folded away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109242 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/shl-anyext.ll [new file with mode: 0644]