search for: sunkadd2

Displaying 3 results from an estimated 3 matches for "sunkadd2".

Did you mean: sunkaddr
2012 Nov 09
0
[LLVMdev] inttoptr and basicaa
On Thu, Nov 8, 2012 at 6:53 PM, Pranav Bhandarkar <pranavb at codeaurora.org> wrote: > Hi, > > I am observing some incorrect behavior in basicaa, wherein two pointers that > basicaa should determine to be MustAlias are ending up NoAlias - the other > extreme :( > I am blaming this on basicaa not handling inttoptr. Here is the relevant IR > snippet. >
2012 Nov 09
2
[LLVMdev] inttoptr and basicaa
...AliasSet[0x112d07d40, 1] must alias, Mod Pointers: (i32* %sunkaddr2, 18446744073709551615) define void @basicaatest(%str* %a) { %sunkaddr1 = ptrtoint %str* %a to i32 %sunkadd = add i32 %sunkaddr1, 4 %sunkaddr2 = inttoptr i32 %sunkadd to i32* %sunkaddr3 = ptrtoint %str* %a to i32 %sunkadd2 = add i32 %sunkaddr1, 4 %sunkaddr4 = inttoptr i32 %sunkadd2 to i64* store i64 1, i64* %sunkaddr4, !tbaa !0 store i32 2, i32* %sunkaddr2, !tbaa !2 ret void } !0 = metadata !{metadata !"int64", metadata !1} !1 = metadata !{} !2 = metadata !{metadata !"int32", metadata !1}...
2012 Nov 09
3
[LLVMdev] inttoptr and basicaa
Hi, I am observing some incorrect behavior in basicaa, wherein two pointers that basicaa should determine to be MustAlias are ending up NoAlias - the other extreme :( I am blaming this on basicaa not handling inttoptr. Here is the relevant IR snippet. -------------------- %sunkaddr36 = ptrtoint %struct.BitParams* %bs to i32 %sunkaddr37 = add i32 %sunkaddr36, 16 %sunkaddr38 = inttoptr i32