summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LCSSA.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-07-19 02:22:21 +0000
committerDevang Patel <dpatel@apple.com>2007-07-19 02:22:21 +0000
commitde5901523ca5bbdcdf49c0a7aa612fabb4893acd (patch)
tree5dbdeaf9cd90f38ce79b2abcea8e481e371baa38 /llvm/lib/Transforms/Utils/LCSSA.cpp
parent94b5a80b939b0b82466d211c2708135cb6f59c8e (diff)
downloadbcm5719-llvm-de5901523ca5bbdcdf49c0a7aa612fabb4893acd.tar.gz
bcm5719-llvm-de5901523ca5bbdcdf49c0a7aa612fabb4893acd.zip
Now this temp. fix is not required.
llvm-svn: 40034
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LCSSA.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp
index 220241df335..3f4bad5c513 100644
--- a/llvm/lib/Transforms/Utils/LCSSA.cpp
+++ b/llvm/lib/Transforms/Utils/LCSSA.cpp
@@ -231,10 +231,6 @@ Value *LCSSA::GetValueForBlock(DomTreeNode *BB, Instruction *OrigInst,
DomTreeNode *IDom = BB->getIDom();
- // If the block has no dominator, bail
- if (!IDom)
- return V = UndefValue::get(OrigInst->getType());
-
// Otherwise, there are two cases: we either have to insert a PHI node or we
// don't. We need to insert a PHI node if this block is not dominated by one
// of the exit nodes from the loop (the loop could have multiple exits, and
OpenPOWER on IntegriCloud