mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
avoid work when possible, perhaps fix the problem nate and andrew are seeing
with != 0 comparisons vanishing. llvm-svn: 21287
This commit is contained in:
parent
cbf7a52768
commit
03d675414e
@ -286,6 +286,7 @@ SelectionDAG::~SelectionDAG() {
|
||||
}
|
||||
|
||||
SDOperand SelectionDAG::getZeroExtendInReg(SDOperand Op, MVT::ValueType VT) {
|
||||
if (Op.getValueType() == VT) return Op;
|
||||
int64_t Imm = ~0ULL >> 64-MVT::getSizeInBits(VT);
|
||||
return getNode(ISD::AND, Op.getValueType(), Op,
|
||||
getConstant(Imm, Op.getValueType()));
|
||||
|
Loading…
Reference in New Issue
Block a user