Skip to content
Snippets Groups Projects
Commit 8754b08f authored by Benjamin Maurer's avatar Benjamin Maurer
Browse files

Make Phi-funs not count as uses in next-use-distance update.

Next-use-distance analysis would count Phis as uses,
so when updating NUD, distance of all Phi args ended up the same.
This does not line-up with how Spiller looks at loop headers
and so we end up spilling and reloading values live at the loop header.

This change makes it so that initial NUD calculation still works
(does not loop infinitely bc. of increasing distance bc. of loop exit
weight), but update works as expected.
parent 21cdeff7
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment