[llvm] [InstCombine] Handle scalable splats of constants in getMinimumFPType (PR #132960)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 26 12:13:37 PDT 2025
================
@@ -13,3 +13,16 @@ define <vscale x 2 x float> @shrink_splat_scalable_extend(<vscale x 2 x float> %
%5 = fptrunc <vscale x 2 x double> %4 to <vscale x 2 x float>
ret <vscale x 2 x float> %5
}
+
+define <vscale x 2 x float> @shrink_splat_scalable_extend_rhs_constexpr(<vscale x 2 x float> %a) {
+; CHECK-LABEL: define <vscale x 2 x float> @shrink_splat_scalable_extend_rhs_constexpr(
----------------
david-arm wrote:
Would be good to have a fixed-width variant of this too, if there isn't one already?
https://github.com/llvm/llvm-project/pull/132960
More information about the llvm-commits
mailing list