mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Revert this change from a while ago; ScalarEvolution shouldn't analyze
undef as 0, since it can't force other analyses to intepret the undef in the same way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -3123,8 +3123,6 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) {
|
|||||||
return getConstant(CI);
|
return getConstant(CI);
|
||||||
else if (isa<ConstantPointerNull>(V))
|
else if (isa<ConstantPointerNull>(V))
|
||||||
return getIntegerSCEV(0, V->getType());
|
return getIntegerSCEV(0, V->getType());
|
||||||
else if (isa<UndefValue>(V))
|
|
||||||
return getIntegerSCEV(0, V->getType());
|
|
||||||
else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
|
else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
|
||||||
return GA->mayBeOverridden() ? getUnknown(V) : getSCEV(GA->getAliasee());
|
return GA->mayBeOverridden() ? getUnknown(V) : getSCEV(GA->getAliasee());
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user