[PowerPC] Pass nofpexcept flag to custom lowered constrained ops
authorQiu Chaofan <qiucofan@cn.ibm.com>
Mon, 21 Sep 2020 02:38:00 +0000 (10:38 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Mon, 21 Sep 2020 02:44:25 +0000 (10:44 +0800)
commit1d782c29872ce3dcc4b64bfde97e197e9042fbfb
treebb2c31a92e152d6b05579412e94af5d3f368114a
parentdeb00cf0b5abd45e160f1e0ff3e3dcce97b071e5
[PowerPC] Pass nofpexcept flag to custom lowered constrained ops

This is a follow-up of D86605. For strict DAG FP node, if its FP
exception behavior metadata is ignore, it should have nofpexcept flag.
But during custom lowering, this flag isn't passed down.

This is also seen on X86 target.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D87390
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/fp-strict-conv-f128.ll
llvm/test/CodeGen/PowerPC/fp-strict-conv.ll