Commit dd0d36d0 authored by Philip Reames's avatar Philip Reames Committed by Philip Reames
Browse files

[RISCVInsertVSETVLI] Handle vl-preserve case in backwards rewrite

This updates the backwards mutation code to handle the case where the previous vset was in vl-preserving (x0, x0) form, but that VL was never used before the next vset which changes the VL. Since this requires writing both VL operands, eliminate the restriction on removing GPR producing vsetv as well. (The register will now be written by the earlier vsetv.)

Differential Revision: https://reviews.llvm.org/D158019
parent 32223123
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