mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 08:46:37 +00:00
Revert the previous check-in. Leave shl x, 1 along for target to deal with.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da95a84a11
commit
6907708c23
@ -1282,9 +1282,6 @@ SDOperand DAGCombiner::visitSHL(SDNode *N) {
|
||||
// fold (shl x, 0) -> x
|
||||
if (N1C && N1C->isNullValue())
|
||||
return N0;
|
||||
// fold (shl x, 1) -> (add x, x)
|
||||
if (N1C && N1C->getValue() == 1)
|
||||
return DAG.getNode(ISD::ADD, VT, N0, N0);
|
||||
// if (shl x, c) is known to be zero, return 0
|
||||
if (N1C && MaskedValueIsZero(SDOperand(N, 0), ~0ULL >> (64-OpSizeInBits),TLI))
|
||||
return DAG.getConstant(0, VT);
|
||||
|
Loading…
Reference in New Issue
Block a user