llvm-project
c348d3b9 - [SLP] Fix crash in isCommutative for abs users of non-overflowing lanes

Commit
3 days ago
[SLP] Fix crash in isCommutative for abs users of non-overflowing lanes An or, xor or and lane converted to sub keeps its original opcode and has no wrap flags, so querying nsw on it asserts. Such a lane does not clear nsw of the vector sub either, so it is treated like a copyable lane: its operands can be swapped only if abs is poison on INT_MIN. Fixes #242907. Pull-request: https://github.com/llvm/llvm-project/pull/242927
Author
Parents
Loading