Unverified Commit 54e5de08 authored by David Green's avatar David Green Committed by GitHub
Browse files

[ARM][LSR] Exclude uses outside the loop when favoring postinc. (#67090)

Extra uses for variables outside the loop can mess with the generation
of postinc variables. This patch alters the collection of loop invariant
fixups in LSR when the target is optimizing for PostInc, to exclude the
collection of these extra uses. It is expected that the variable can be
rematerialized, which will lead to a more optimal sequence of
instructions in the loop.
parent af199ee0
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