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

            Bug ID: 25270
           Summary: llc produces incorrect assembler for knl
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 15130
  --> https://llvm.org/bugs/attachment.cgi?id=15130&action=edit
Reproducer (foo.ll is miscompiled).

llc produces incorrect assembler for knl. It tries to reuse the %var in two
Print calls, despite its value has changed. llc probably optimized away the
register spill of %var_load_load by reloading it. This bug occurs in foo.ll
file.

Compile:
llc -mcpu=knl call.ll
llc -mcpu=knl foo.ll
clang++ -march=knl foo.s call.s main.cpp
Run: sde -knl -- ./a.out

LLVM revision #250620

-- 
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