[PATCH] D124097: llvm-reduce: Add reduction pass to remove regalloc hints
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 26 20:47:46 PDT 2022
MatzeB added a comment.
> I'm a bit confused by what's actually stored for the allocation hints. The MIR parser only handles the "simple" case where there's a single hint. I don't really understand the assertion in clearSimpleHint, or under what circumstances there are multiple hint registers.
I'm not super familiar with the regalloc hints off-hand. But it seems ARM is the only target using target-specific regalloc hints. You can search for `ARMRI::RegPairEven`, `ARMRI::RegPairOdd`, `ARMRI::RegLR` there. Anyway assuming they are indeed just "hints" then it should be fine to drop them...
It seems to me that clearing a hint may work with `setRegAllocationHint(vreg, 0, Register())`. Though maybe it would be best to create a new `clearRegAllocationHint(...)` API for this to make it more explicit, what do you think?
LGTM (use `setRegAllocationHint` or add a new `clearRegAllocationHint` API at your discretion).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124097/new/
https://reviews.llvm.org/D124097
More information about the llvm-commits
mailing list