diff options
author | Victor Hernandez <vhernandez@apple.com> | 2009-10-19 21:47:22 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2009-10-19 21:47:22 +0000 |
commit | 5c704d505c1a3dfe75c0528f6372363e0c41b378 (patch) | |
tree | af0908b97689883064a5820180995acb84c11d4c /llvm/lib/Transforms | |
parent | e3796a0feeffbb2a73c5412585758c801ebc3bac (diff) | |
download | bcm5719-llvm-5c704d505c1a3dfe75c0528f6372363e0c41b378.tar.gz bcm5719-llvm-5c704d505c1a3dfe75c0528f6372363e0c41b378.zip |
Malloc calls are marked NoAlias, so the code below the isMalloc() check makes it redundant. Removing the isMalloc() check.
llvm-svn: 84541
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index 563d594c7b0..0701b94c58e 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -269,8 +269,6 @@ bool FunctionAttrs::IsFunctionMallocLike(Function *F, case Instruction::Alloca: break; case Instruction::Call: - if (isMalloc(RVI)) - break; case Instruction::Invoke: { CallSite CS(RVI); if (CS.paramHasAttr(0, Attribute::NoAlias)) |