[LLVMbugs] [Bug 9120] not taking advantage of known pointer alignment
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Feb 13 00:25:43 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9120
Chris Lattner <clattner at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Chris Lattner <clattner at apple.com> 2011-02-13 02:25:42 CST ---
Comment #2 is now simplified into:
define i1 @test(i32 %x, i32 %y) {
%C = icmp eq i32 %x, %y
ret i1 %C
}
We now compile the original testcase down to this:
define void @_Z3fooRKSt6vectorIiSaIiEE(%"class.std::vector"* nocapture %v) ssp
{
entry:
%tmp2.i = getelementptr inbounds %"class.std::vector"* %v, i64 0, i32 0, i64
8
%0 = bitcast i8* %tmp2.i to i32**
%tmp3.i = load i32** %0, align 8, !tbaa !0
%tmp5.i = bitcast %"class.std::vector"* %v to i32**
%tmp6.i = load i32** %tmp5.i, align 8, !tbaa !0
%cmp = icmp eq i32* %tmp3.i, %tmp6.i
br i1 %cmp, label %if.then, label %if.else
so this looks fixed!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list