[llvm] [Legalizer] Soften EXTRACT_ELEMENT on ppcf128 (PR #77412)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 22:20:06 PST 2024


================
@@ -262,6 +264,16 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_ConstantFP(SDNode *N) {
   }
 }
 
+SDValue DAGTypeLegalizer::SoftenFloatRes_EXTRACT_ELEMENT(SDNode *N) {
+  SDValue Src = N->getOperand(0);
+  assert(Src.getValueType() == MVT::ppcf128 &&
+         Src.getOperand(0)->getOpcode() == ISD::BUILD_PAIR &&
----------------
arsenm wrote:

Don't think you need the build_pair assertion 

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


More information about the llvm-commits mailing list