Commit 401f2281 authored by Jack Styles's avatar Jack Styles
Browse files

[ARM] Add pass for handling undef early-clobber values

When using Greedy Register Allocation, there are times where
early-clobber values are ignored, and assigned the same register.
This is illeagal behaviour for these intructions. To get around this,
using Pseudo instructions for early-clobber registers gives them a
definition and allows Greedy to assign them to a different register.
This then meets the ARM Architecture Reference Manual and
matches the defined behaviour.

This patch takes a similar approach to the RISC-V pass added as part
of #3b8c0b34 to fix issue 50157.
parent b6f96776
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