From 8ef5caa80a5f40ba34d02f32f6ba4b4601268f89 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 8 Apr 2010 05:58:24 +0000 Subject: [PATCH] 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 --- lib/Analysis/ScalarEvolution.cpp | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.34.1