[PATCH] D47573: {Power9} Enable extload of constant values to f128

Lei Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 31 06:51:10 PDT 2018


lei added a comment.

This patch has a dependency on: https://reviews.llvm.org/D47552



================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:800
         setOperationAction(ISD::FP_EXTEND, MVT::f128, Legal);
-        setLoadExtAction(ISD::EXTLOAD, MVT::f128, MVT::f64, Expand);
-        setLoadExtAction(ISD::EXTLOAD, MVT::f128, MVT::f32, Expand);
+        for (MVT VT : MVT::fp_valuetypes())
+          setLoadExtAction(ISD::EXTLOAD, MVT::f128, VT, Expand);
----------------
nemanjai wrote:
> Nit: please add a comment `// No extending loads to f128 on PPC.`
okay.


https://reviews.llvm.org/D47573





More information about the llvm-commits mailing list