[LLVMbugs] [Bug 12060] globalopt miscompilation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 21 13:35:34 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12060
Nick Lewycky <nlewycky at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Nick Lewycky <nlewycky at google.com> 2012-02-21 15:35:34 CST ---
Yes, this is a dupe of PR11352. We take the ConstantExpr "i32* getelementptr
inbounds (%closure* @f, i32 0, i32 0)" verbatim when processing the store, but
when processing the load in @lambda, it globalopt computes that exact same
constant-expr but feeds it through ConstantFoldConstantExpression which
produces "i32* getelementptr inbounds (%closure* @f, i64 0, i32 0)", which
appears to GlobalOpt to be an entirely different pointer.
*** This bug has been marked as a duplicate of bug 11352 ***
--
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