https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353

--- Comment #9 from Vineet Gupta <vineetg at gcc dot gnu.org> ---
Or the other option is to prevent these patterns from kicking in during reload 
by adjust the costs (there's a TODO there already)

diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 3ac40234345a..0933fc2d6099 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -2352,6 +2352,9 @@ riscv_const_insns (rtx x, bool allow_new_pseudos)

            if (CONST_VECTOR_STEPPED_P (x))
              {
+               if (lra_in_progress || reload_completed)
+                 return 0;
+

Reply via email to