summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-08 05:58:24 +0000
committerDan Gohman <gohman@apple.com>2010-04-08 05:58:24 +0000
commit883105485bcd1880109f63afc26f5e1fb433272d (patch)
tree61f05b8af5966d1aea38d2d8ed0a08fe2d4017a3 /llvm
parent4506539d84095e766c91ef9aa0517435eb6bc3de (diff)
downloadbcm5719-llvm-883105485bcd1880109f63afc26f5e1fb433272d.tar.gz
bcm5719-llvm-883105485bcd1880109f63afc26f5e1fb433272d.zip
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. llvm-svn: 100749
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 1af271a93ef..b8ccb9f68fe 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud