[LLVMbugs] [Bug 8978] New: constmerge is order dependent
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 14 23:29:38 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8978
Summary: constmerge is order dependent
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
constmerge will optimize
%struct.foobar = type { i32 }
@bar.d = constant %struct.foobar zeroinitializer, align 4
@foo.d = internal constant %struct.foobar zeroinitializer, align 4
define i32 @main() nounwind ssp {
entry:
%call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d)
nounwind
ret i32 0
}
but swapping the positions of bar.d and foo.d causes it to miss the
opportunity.
--
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