llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

llc produces incorrect assembler for knl

Open Vsevolod-Livinskij opened this issue 11 years ago • 1 comments

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

Vsevolod-Livinskij avatar Oct 21 '15 13:10 Vsevolod-Livinskij

Fixed in 251275.

http://reviews.llvm.org/D14057

igor-breger avatar Oct 26 '15 10:10 igor-breger