[all-commits] [llvm/llvm-project] d9af9c: [ARM] Fold floating point select(binop) patterns
David Green via All-commits
all-commits at lists.llvm.org
Wed Nov 24 02:22:32 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d9af9c2c5a53c9ba6aa0255240a2a40e8bea27aa
https://github.com/llvm/llvm-project/commit/d9af9c2c5a53c9ba6aa0255240a2a40e8bea27aa
Author: David Green <david.green at arm.com>
Date: 2021-11-24 (Wed, 24 Nov 2021)
Changed paths:
M llvm/lib/Target/ARM/ARMInstrMVE.td
M llvm/test/CodeGen/Thumb2/mve-pred-selectop3.ll
Log Message:
-----------
[ARM] Fold floating point select(binop) patterns
Similar to D84091 which added 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.
Differential Revision: https://reviews.llvm.org/D113574
More information about the All-commits
mailing list