[llvm] [CodeGen] Fix EVT::changeVectorElementType assertion on simple-to-extended fallback (PR #173413)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 23 13:12:37 PST 2025


================
@@ -2487,8 +2487,9 @@ SDValue NVPTXTargetLowering::LowerFP_ROUND(SDValue Op,
           // Round-inexact-to-odd f64 to f32, then do the final rounding using
           // the hardware f32 -> bf16 instruction.
           SDValue rod = TLI->expandRoundInexactToOdd(
-              WideVT.isVector() ? WideVT.changeVectorElementType(MVT::f32)
-                                : MVT::f32,
+              WideVT.isVector()
----------------
topperc wrote:

Can we use `changeElementType` here?

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


More information about the llvm-commits mailing list