Skip to content

Commit 9e5fbe0

Browse files
committed
[ARM] Change intruction selection patterns for strict fp ops and add mayRaiseFPException to appropriate instructions
1 parent 01aeb80 commit 9e5fbe0

File tree

2 files changed

+149
-112
lines changed

2 files changed

+149
-112
lines changed

llvm/lib/Target/ARM/ARMInstrInfo.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,15 +473,15 @@ def xor_su : PatFrag<(ops node:$lhs, node:$rhs), (xor node:$lhs, node:$rhs)>;
473473

474474
// An 'fmul' node with a single use.
475475
let HasOneUse = 1 in
476-
def fmul_su : PatFrag<(ops node:$lhs, node:$rhs), (fmul node:$lhs, node:$rhs)>;
476+
def fmul_su : PatFrag<(ops node:$lhs, node:$rhs), (any_fmul node:$lhs, node:$rhs)>;
477477

478478
// An 'fadd' node which checks for single non-hazardous use.
479-
def fadd_mlx : PatFrag<(ops node:$lhs, node:$rhs),(fadd node:$lhs, node:$rhs),[{
479+
def fadd_mlx : PatFrag<(ops node:$lhs, node:$rhs),(any_fadd node:$lhs, node:$rhs),[{
480480
return hasNoVMLxHazardUse(N);
481481
}]>;
482482

483483
// An 'fsub' node which checks for single non-hazardous use.
484-
def fsub_mlx : PatFrag<(ops node:$lhs, node:$rhs),(fsub node:$lhs, node:$rhs),[{
484+
def fsub_mlx : PatFrag<(ops node:$lhs, node:$rhs),(any_fsub node:$lhs, node:$rhs),[{
485485
return hasNoVMLxHazardUse(N);
486486
}]>;
487487

0 commit comments

Comments
 (0)