[PATCH] D113574: [ARM] Fold floating point select(binop) patterns
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 10 09:14:47 PST 2021
dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samtebbs, ostannard, simon_tatham.
Herald added subscribers: hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.
Similar to D84091 <https://reviews.llvm.org/D84091> which added extra extra predicated folds for integer operations using the identity element of the operation, this adds them for floating point operations for the form `BinOp(x, select(p, y, Identity))`. They are folded back to predicated versions of the operator, with fadd having the identity -0.0, fsub using the identity 0.0 and fmul using 1.0.
https://reviews.llvm.org/D113574
Files:
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/test/CodeGen/Thumb2/mve-pred-selectop3.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113574.386196.patch
Type: text/x-patch
Size: 16235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211110/2f7cd50f/attachment.bin>
More information about the llvm-commits
mailing list