[llvm-commits] [llvm] r40034 - /llvm/trunk/lib/Transforms/Utils/LCSSA.cpp

Devang Patel dpatel at apple.com
Wed Jul 18 19:22:23 PDT 2007


Author: dpatel
Date: Wed Jul 18 21:22:21 2007
New Revision: 40034

URL: http://llvm.org/viewvc/llvm-project?rev=40034&view=rev
Log:
Now this temp. fix is not required.


Modified:
    llvm/trunk/lib/Transforms/Utils/LCSSA.cpp

Modified: llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LCSSA.cpp?rev=40034&r1=40033&r2=40034&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LCSSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LCSSA.cpp Wed Jul 18 21:22:21 2007
@@ -231,10 +231,6 @@
 
   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





More information about the llvm-commits mailing list