llvm-project
llvm-project copied to clipboard
llc produces incorrect assembler for knl
| Bugzilla Link | 25270 |
| Resolution | FIXED |
| Resolved on | Oct 26, 2015 03:41 |
| Version | trunk |
| OS | Linux |
| Attachments | Reproducer (foo.ll is miscompiled). |
| CC | @dbabokin,@delena,@igor-breger,@Vsevolod-Livinskij |
Extended Description
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
Fixed in 251275.
http://reviews.llvm.org/D14057