[AArch64][SVE] Allow to lower WHILEop with constant operands to PTRUE
authorDinar Temirbulatov <dinar.temirbulatov@arm.com>
Sun, 18 Dec 2022 01:27:03 +0000 (01:27 +0000)
committerDinar Temirbulatov <dinar.temirbulatov@arm.com>
Sun, 18 Dec 2022 01:27:03 +0000 (01:27 +0000)
commit7bce66edc65b74513a83011577b0d7362f859671
tree0be50d776b9201b2c8eacbeb8f2eed6c2e4c49dc
parent7db05ae14d7982fbcbcd7e596de588c6cd911c38
[AArch64][SVE] Allow to lower WHILEop with constant operands to PTRUE

This allows it to fold WHILEop with constant operand to PTRUE instruction in
the case given range is fitted to predicate format. Also, this change
fixes the unsigned overflow error introduced in D137547 for WHILELO lowering.

Differential Revision: https://reviews.llvm.org/D139068
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-intrinsics-while.ll
llvm/test/CodeGen/AArch64/sve2-intrinsics-while.ll