Revert this change from a while ago; ScalarEvolution shouldn't analyze
authorDan Gohman <gohman@apple.com>
Thu, 8 Apr 2010 05:58:24 +0000 (05:58 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 8 Apr 2010 05:58:24 +0000 (05:58 +0000)
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

lib/Analysis/ScalarEvolution.cpp

index 1af271a93eff08bf9f96fd0ef81bb1a9d785cf73..b8ccb9f68fe02a1767b5bd3773fd53eeff951c9d 100644 (file)
@@ -3123,8 +3123,6 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) {
     return getConstant(CI);
   else if (isa<ConstantPointerNull>(V))
     return getIntegerSCEV(0, V->getType());
-  else if (isa<UndefValue>(V))
-    return getIntegerSCEV(0, V->getType());
   else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
     return GA->mayBeOverridden() ? getUnknown(V) : getSCEV(GA->getAliasee());
   else