[PATCH] D45553: [Power9]Legalize and emit code for truncate and convert Quad-Precision to Double-Word

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 12 08:23:36 PDT 2018


inouehrs added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:9411
+    // Legalize instruction for converting f128 to integer types
+    if (EnableQuadPrecision && (Op->getOperand(0).getValueType() == MVT::f128))
+      return Op;
----------------
I feel it is better to do this check in `LowerFP_TO_INT` for ease of reading.


https://reviews.llvm.org/D45553





More information about the llvm-commits mailing list