These cases were failing before, but with cryptic asserts.
Add asserts in the RegScavenger that fail earlier with better
messages. NFC
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/CodeGen/RegisterScavenging.cpp | ||
|---|---|---|
| 430 | What if you did intend to scavenge at the beginning? Also seems weird to assert here when there's a break on begin above | |
| llvm/lib/CodeGen/RegisterScavenging.cpp | ||
|---|---|---|
| 430 | I tried to scavenge a register with scavengeRegisterBackwards while the scavenger was in forward mode. | |
What if you did intend to scavenge at the beginning? Also seems weird to assert here when there's a break on begin above