[PATCH] D57857: [PowerPC] custom lower `v2f64 fpext v2f32`

Ahsan Saghir via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 7 14:31:05 PST 2019


saghir requested changes to this revision.
saghir added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:9526
+  if (Op.getValueType() != MVT::v2f64 ||
+    Op.getOperand(0).getValueType() != MVT::v2f32)
+    return SDValue();
----------------
Formatting


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:9544
+        return SDValue();
+      // Generate new load dag.
+      LoadSDNode *LD = cast<LoadSDNode>(LdOp);
----------------
Minor: `DAG` instead of `dag`.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.h:407
 
+      /// Custom expend v4f32 to v2f64.
+      FP_EXTEND_LHW,
----------------
`expand` maybe?


================
Comment at: llvm/lib/Target/PowerPC/PPCInstrVSX.td:1089
 }
+
 let Predicates = [IsBigEndian, HasVSX, HasOnlySwappingMemOps] in {
----------------
You may get rid of this new line.


================
Comment at: llvm/test/CodeGen/PowerPC/reduce_scalarization.ll:7
+; RUN:     -mcpu=pwr9 -ppc-asm-full-reg-names \
+; RUN:     -ppc-vsr-nums-as-vr < %s | FileCheck %s
+
----------------
Do we need `RUN` on all these lines?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57857/new/

https://reviews.llvm.org/D57857





More information about the llvm-commits mailing list