https://bugs.llvm.org/show_bug.cgi?id=49527
Bug ID: 49527
Summary: extraneous dynamic swizzle when all lanes are equal
and constant
Product: new-bugs
Version: 11.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: danielwatson...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
When the vector being shuffled has equal elements/lanes, LLVM should skip the
shuffle/swizzle.
As far as I can tell this only affects dynamic swizzles like AVX2's VPERMD and
does not affect constant shuffles like SHUFPS.
VPERMD: https://godbolt.org/z/eeKWfx
shufflevector: https://godbolt.org/z/9b6r7x
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs