[RISCV][GISel] Refactor most of selectConstant into a general constant materialization function.
Move the G_CONSTANT specific parts up to the switch that calls it. The materialization function will be used by G_FCONSTANT too. The only functional change is we now create COPY from X0 for the 0 case instead of changing the G_CONSTANT in place.
parent
1bb48c44
Please register or sign in to comment