mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
SelectionDAG::SignBitIsZero doesn't work right for vectors,
for now, conservatively return false. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9fcff043fe
commit
a4f7318245
@ -1516,6 +1516,10 @@ SDValue SelectionDAG::FoldSetCC(MVT VT, SDValue N1,
|
||||
/// SignBitIsZero - Return true if the sign bit of Op is known to be zero. We
|
||||
/// use this predicate to simplify operations downstream.
|
||||
bool SelectionDAG::SignBitIsZero(SDValue Op, unsigned Depth) const {
|
||||
// This predicate is not safe for vector operations.
|
||||
if (Op.getValueType().isVector())
|
||||
return false;
|
||||
|
||||
unsigned BitWidth = Op.getValueSizeInBits();
|
||||
return MaskedValueIsZero(Op, APInt::getSignBit(BitWidth), Depth);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user