mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
avoid work when possible, perhaps fix the problem nate and andrew are seeing
with != 0 comparisons vanishing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21287 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -286,6 +286,7 @@ SelectionDAG::~SelectionDAG() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDOperand SelectionDAG::getZeroExtendInReg(SDOperand Op, MVT::ValueType VT) {
|
SDOperand SelectionDAG::getZeroExtendInReg(SDOperand Op, MVT::ValueType VT) {
|
||||||
|
if (Op.getValueType() == VT) return Op;
|
||||||
int64_t Imm = ~0ULL >> 64-MVT::getSizeInBits(VT);
|
int64_t Imm = ~0ULL >> 64-MVT::getSizeInBits(VT);
|
||||||
return getNode(ISD::AND, Op.getValueType(), Op,
|
return getNode(ISD::AND, Op.getValueType(), Op,
|
||||||
getConstant(Imm, Op.getValueType()));
|
getConstant(Imm, Op.getValueType()));
|
||||||
|
Reference in New Issue
Block a user