[llvm] [BasicAA] Treat IntToPtr(Argument) similarly to Argument in relation to function-local objects. (PR #134505)
Nuno Lopes via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 13:35:26 PDT 2025
================
@@ -24,21 +24,21 @@ define void @test2(i64 %Q_as_int) {
ret void
}
-; Verify that escaped noalias parameter may alias inttoptr
+; Verify that escaped noalias parameter are no alias inttoptr
define void @test3(ptr noalias %P, i64 %Q_as_int) {
; CHECK-LABEL: Function: test3:
- ; CHECK: MayAlias: i8* %P, i8* %Q
+ ; CHECK: NoAlias: i8* %P, i8* %Q
----------------
nunoplopes wrote:
That's one interpretation of noalias. But you can also choose to say that P cannot alias with the result of int2ptr since noalias means you cannot do any access through another pointer that points to the same location as P.
https://github.com/llvm/llvm-project/pull/134505
More information about the llvm-commits
mailing list