[PATCH] D40591: [SelectionDAG][X86] Teach promotion legalization for fp_to_sint/fp_to_uint to insert an assertsext/assertzext based on the original type

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 05:40:10 PST 2017


RKSimon added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:523
+                         DAG.getValueType(VT.getScalarType()));
   return DAG.getNode(ISD::TRUNCATE, SDLoc(Op), VT, promoted);
 }
----------------
Replace all the SDLoc(Op) cases with loc?


https://reviews.llvm.org/D40591





More information about the llvm-commits mailing list