Commit 4fe0d35f authored by Craig Topper's avatar Craig Topper
Browse files

[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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment