[LLVMbugs] [Bug 9004] New: GVN correlated expressions handles the hard case but not the easy case!
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 19 07:25:28 PST 2011
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: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list