From: Dan Gohman Date: Thu, 8 Apr 2010 05:58:24 +0000 (+0000) Subject: Revert this change from a while ago; ScalarEvolution shouldn't analyze X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8ef5caa80a5f40ba34d02f32f6ba4b4601268f89;p=oota-llvm.git 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 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 1af271a93ef..b8ccb9f68fe 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -3123,8 +3123,6 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) { return getConstant(CI); else if (isa(V)) return getIntegerSCEV(0, V->getType()); - else if (isa(V)) - return getIntegerSCEV(0, V->getType()); else if (GlobalAlias *GA = dyn_cast(V)) return GA->mayBeOverridden() ? getUnknown(V) : getSCEV(GA->getAliasee()); else