http://llvm.org/bugs/show_bug.cgi?id=9004
Summary: GVN correlated expressions handles the hard case but
not the easy case!
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Run "opt -gvn" on the following testcase. It gets that "ret i1 %cond2" returns
false, but it doesn't see that the a priori easier "ret i1 %cond" returns true!
define i1 @foo(i32 %x) {
%cond = icmp eq i32 %x, 0
br i1 %cond, label %iftrue, label %iffalse
iftrue:
ret i1 %cond
iffalse:
%cond2 = icmp eq i32 %x, 0
ret i1 %cond2
}
--
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