diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-08 05:58:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-08 05:58:24 +0000 |
commit | 8ef5caa80a5f40ba34d02f32f6ba4b4601268f89 (patch) | |
tree | 49f6fd883cda83fb1e38aa8b114cc950f5e0d13a /lib/Analysis | |
parent | 701a4aef7fa0ece4dc1fdbc88b981820564cb4e4 (diff) |
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
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 1af271a93e..b8ccb9f68f 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<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 |