mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
revert my previous commit (r159173), since as Eli pointed out, it's perfectly ok to mark realloc as noalias
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159175 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a88d0edb49
commit
fd99cabdc6
@ -1942,6 +1942,7 @@ void SimplifyLibCalls::inferPrototypeAttributes(Function &F) {
|
||||
!FTy->getReturnType()->isPointerTy())
|
||||
return;
|
||||
setDoesNotThrow(F);
|
||||
setDoesNotAlias(F, 0);
|
||||
setDoesNotCapture(F, 1);
|
||||
} else if (Name == "read") {
|
||||
if (FTy->getNumParams() != 3 ||
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: opt < %s -simplify-libcalls -S > %t
|
||||
; RUN: grep noalias %t | count 1
|
||||
; RUN: grep noalias %t | count 2
|
||||
; RUN: grep nocapture %t | count 3
|
||||
; RUN: grep nounwind %t | count 3
|
||||
; RUN: grep readonly %t | count 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user