[llvm-commits] [llvm] r84541 - /llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp

Victor Hernandez vhernandez at apple.com
Mon Oct 19 14:47:22 PDT 2009


Author: hernande
Date: Mon Oct 19 16:47:22 2009
New Revision: 84541

URL: http://llvm.org/viewvc/llvm-project?rev=84541&view=rev
Log:
Malloc calls are marked NoAlias, so the code below the isMalloc() check makes it redundant.  Removing the isMalloc() check.


Modified:
    llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp

Modified: llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=84541&r1=84540&r2=84541&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Mon Oct 19 16:47:22 2009
@@ -269,8 +269,6 @@
         case Instruction::Alloca:
           break;
         case Instruction::Call:
-          if (isMalloc(RVI))
-            break;
         case Instruction::Invoke: {
           CallSite CS(RVI);
           if (CS.paramHasAttr(0, Attribute::NoAlias))





More information about the llvm-commits mailing list