https://bugs.llvm.org/show_bug.cgi?id=39658

            Bug ID: 39658
           Summary: X86CondBrFolding causes miscompile
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 21116
  --> https://bugs.llvm.org/attachment.cgi?id=21116&action=edit
test.ll

X86CondBrFolding pass first introduced in patch
https://reviews.llvm.org/rL343993 has caused incorrect calculations on one of
our Java tests. The calculation resuit is OK when this transform is turned off
by setting the option x86-condbr-folding to 0.

I haven't figured out what exactly is wrong in what this pass is doing.

To reproduce, run llc on the test.ll in attachment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to