[llvm] [PowerPC] Forbid f128 SELECT_CC optimized into fsel (PR #71497)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 21:53:37 PST 2023


================
@@ -8080,7 +8080,8 @@ SDValue PPCTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const {
   // For more information, see section F.3 of the 2.06 ISA specification.
   // With ISA 3.0
   if ((!DAG.getTarget().Options.NoInfsFPMath && !Flags.hasNoInfs()) ||
-      (!DAG.getTarget().Options.NoNaNsFPMath && !Flags.hasNoNaNs()))
+      (!DAG.getTarget().Options.NoNaNsFPMath && !Flags.hasNoNaNs()) ||
+      ResVT == MVT::f128)
----------------
chenzheng1030 wrote:

But https://github.com/llvm/llvm-project/commit/097a95f2df4666df74909ab1d3bcc0c1824ace86 will not try to custom `SELECT_CC` to fsel, right? That commit is only for ieee long double.
Do we have other pattern that will generate fsel operating on ppc_fp128 type?


https://github.com/llvm/llvm-project/pull/71497


More information about the llvm-commits mailing list