aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2021-11-24 10:22:20 +0000
committerDavid Green <david.green@arm.com>2021-11-24 10:22:20 +0000
commitd9af9c2c5a53c9ba6aa0255240a2a40e8bea27aa (patch)
tree8ea9aaabfcb2209f1f851dd892170873938c1efe /llvm/lib/CodeGen/MachineFunction.cpp
parent764b35d89f57a9052d84898422a865dc2e08edca (diff)
downloadllvm-d9af9c2c5a53c9ba6aa0255240a2a40e8bea27aa.zip
llvm-d9af9c2c5a53c9ba6aa0255240a2a40e8bea27aa.tar.gz
llvm-d9af9c2c5a53c9ba6aa0255240a2a40e8bea27aa.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions