mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
[SelectionDAG] Replace a flag that can never be true with an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c712ae8c95
commit
1997c335b9
@ -421,9 +421,8 @@ bool TargetLowering::ShrinkDemandedOp(SDValue Op, unsigned BitWidth,
|
||||
Op.getOpcode(), dl, SmallVT,
|
||||
DAG.getNode(ISD::TRUNCATE, dl, SmallVT, Op.getOperand(0)),
|
||||
DAG.getNode(ISD::TRUNCATE, dl, SmallVT, Op.getOperand(1)));
|
||||
bool NeedZext = DemandedSize > SmallVTBits;
|
||||
SDValue Z = DAG.getNode(NeedZext ? ISD::ZERO_EXTEND : ISD::ANY_EXTEND,
|
||||
dl, Op.getValueType(), X);
|
||||
assert(DemandedSize <= SmallVTBits && "Narrowed below demanded bits?");
|
||||
SDValue Z = DAG.getNode(ISD::ANY_EXTEND, dl, Op.getValueType(), X);
|
||||
return TLO.CombineTo(Op, Z);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user