[llvm-commits] [llvm] r159471 - /llvm/trunk/lib/Transforms/Utils/Local.cpp

Nuno Lopes nunoplopes at sapo.pt
Fri Jun 29 15:10:10 PDT 2012


Author: nlopes
Date: Fri Jun 29 17:10:10 2012
New Revision: 159471

URL: http://llvm.org/viewvc/llvm-project?rev=159471&view=rev
Log:
revert r159440. As Duncan pointed out, the test for invoke is not needed at this point

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

Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=159471&r1=159470&r2=159471&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Fri Jun 29 17:10:10 2012
@@ -265,8 +265,7 @@
       return isa<UndefValue>(II->getArgOperand(1));
   }
 
-  if (isAllocLikeFn(I))
-    return isa<CallInst>(I); // do not mess around with invoke here
+  if (isAllocLikeFn(I)) return true;
 
   if (CallInst *CI = isFreeCall(I))
     if (Constant *C = dyn_cast<Constant>(CI->getArgOperand(0)))





More information about the llvm-commits mailing list