http://llvm.org/bugs/show_bug.cgi?id=5287
Summary: Instruction combine wrong fold of load from global
constant
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=3694)
--> (http://llvm.org/bugs/attachment.cgi?id=3694)
testcase .ll
The correct output is 1, 5, 1, but after "opt -instcombine" we get:
%0 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds (%"char[]"*
@.str, i64 0, i64 0), i32 8, i32 0, i32 0) nounwind ; <i32> [#uses=0]
This is a recent regression, and is presumably due to the recent improvements
in folding loads from constants.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs