AVX512F lowers zext from i1 to i64 through a k-mask
| Bugzilla Link | 28175 |
| Resolution | FIXED |
| Resolved on | Jun 05, 2017 08:17 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @topperc,@delena,@hfinkel,@igor-breger,@ZviRackover |
Extended Description
For
long long bar();
long long foo(bool i, int j) { if (j) return bar(); return i; }
With -mavx512f, we get:
foo(bool, int): # @foo(bool, int) testl %esi, %esi je .LBB0_1 jmp bar() # TAILCALL .LBB0_1: andl $1, %edi kmovw %edi, %k0 kmovw %k0, %eax andq $1, %rax retq
closing this since it does not happen anymore
This may be fixed by r298984.
Please disregard my last comment. Should be:
After commit 281302 the generated code is slightly improved. However, the main issue of redundant copies thru k-regs remains:
testl %esi, %esi
je .LBB0_1
BB#2: # %if.then
jmp _Z3barv # TAILCALL
.LBB0_1: # %return kmovw %edi, %k0 kmovw %k0, %eax andq $1, %rax retq
The commit Elena referred to to in the previous commit is 281302. It was reverted since, so this issue remains unresolved.
Fixed in r24456
Reopening, since r274626 has been reverted by r279782.
Fixed in 274626.
This has been fixed in r274626, right?
assigned to @delena