llvm-project
6ae65830 - [CodeGen] Finish untangling LRE::scanRemattable [nfc] (#161963)

Commit
20 hours ago
[CodeGen] Finish untangling LRE::scanRemattable [nfc] (#161963) This is an attempt to simplify the rematerialization logic in InlineSpiller and SplitKit. I'd earlier done the same for RegisterCoalescer in 57b673. The basic idea of this change is that we don't need to check whether an instruction is rematerializable early. Instead, we can defer the check to the point where we're actually trying to materialize something. We also don't need to indirect that query through a VNI key, and can instead just check the instruction directly at the use site.
Author
Parents
Loading