These instructions requires both register operands to be compressible
so I've only applied the hint if we already have a GPRC physical register
assigned for the other register operand.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp | ||
---|---|---|
440–441 | I missed this on the previous patch, but this comment is no longer accurate now there's support for some GPRC instructions. | |
472 | "require need" => "require" | |
474 | Not a huge deal either way as it's fairly clear from the context, but perhaps isCompressibleOpnd would be marginally better? | |
475 | The fact this returns true for any non-register operand could perhaps be noted in the comment above? |
I missed this on the previous patch, but this comment is no longer accurate now there's support for some GPRC instructions.