llvm-project
33a14cbe - [RISCV] Add guard to prevent GPRPair merge on targets without Zdinx or P (#186600)

Commit
34 days ago
[RISCV] Add guard to prevent GPRPair merge on targets without Zdinx or P (#186600) Resolves #186527. The issue points out that GPRPair merge logic in the RISCVMoveMerger pass was being called on a target without `zdinx` or `experimental-P`, triggering an unreachable in `getGPRPairCopyOpcode`. This patch fixes this issue by guarding `isEvenRegisterCopy` and `isOddRegisterCopy` to return false when neither Zdinx nor P is present.
Author
Parents
Loading