[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
Sun Apr 6 01:57:43 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:

this is not correct. %P and %Q can alias if the caller did ptr2int on %Q.

https://github.com/llvm/llvm-project/pull/134505


More information about the llvm-commits mailing list