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

llc optimises unaligned intrinsic to aligned load

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

Bugzilla Link 23632
Resolution FIXED
Resolved on Jun 01, 2015 04:13
Version trunk
OS Linux
Attachments Reproducer.
CC @dbabokin,@igor-breger

Extended Description

@​llvm.x86.avx512.mask.compress.store.d.512 with -1 mask is optimized to vmovdqa32 (i.e. aligned move), which seems to be incorrect, as alignment is unknown in general case.

Compile: llc -mcpu=knl repr.ll clang++ -march=knl main.cpp repr.s

Run: sde -knl -- ./a.out

llc -version LLVM (http://llvm.org/): LLVM version 3.7.0svn Optimized build with assertions. Built May 21 2015 (15:01:04). Default target: x86_64-unknown-linux-gnu Host CPU: sandybridge

clang version 3.7.0 (trunk 237892)

Vsevolod-Livinskij avatar May 22 '15 07:05 Vsevolod-Livinskij

Fixed in r238724

igor-breger avatar Jun 01 '15 11:06 igor-breger