mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 04:31:17 +00:00
Constant fold bitconvert(undef)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6bfffbae2
commit
08da55eeff
@ -1167,6 +1167,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
if (VT == Operand.getValueType()) return Operand; // noop conversion.
|
||||
if (OpOpcode == ISD::BIT_CONVERT) // bitconv(bitconv(x)) -> bitconv(x)
|
||||
return getNode(ISD::BIT_CONVERT, VT, Operand.getOperand(0));
|
||||
if (OpOpcode == ISD::UNDEF)
|
||||
return getNode(ISD::UNDEF, VT);
|
||||
break;
|
||||
case ISD::SCALAR_TO_VECTOR:
|
||||
assert(MVT::isVector(VT) && !MVT::isVector(Operand.getValueType()) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user