mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Remove dead store by taking a guess at what Chris meant. I wasn't able to
design a testcase that would tickle this behaviour. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d5a831bfa
commit
d43737bd09
@ -1241,12 +1241,11 @@ static ICmpInst::Predicate evaluateICmpRelation(LLVMContext &Context,
|
||||
// null pointer, do the comparison with the pre-casted value.
|
||||
if (V2->isNullValue() &&
|
||||
(isa<PointerType>(CE1->getType()) || CE1->getType()->isInteger())) {
|
||||
bool sgnd = isSigned;
|
||||
if (CE1->getOpcode() == Instruction::ZExt) isSigned = false;
|
||||
if (CE1->getOpcode() == Instruction::SExt) isSigned = true;
|
||||
return evaluateICmpRelation(Context, CE1Op0,
|
||||
Constant::getNullValue(CE1Op0->getType()),
|
||||
sgnd);
|
||||
isSigned);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user