Skip to content

[Mips] Add support of MipsInstrInfo::getNop() #139863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025

Conversation

yingopq
Copy link
Contributor

@yingopq yingopq commented May 14, 2025

Fix compile crash when using __builtin_unreachable.
Fix #134913.

Fix compile crash when using __builtin_unreachable.
Fix llvm#134913.
@@ -53,6 +54,13 @@ bool MipsInstrInfo::isZeroImm(const MachineOperand &op) const {
return op.isImm() && op.getImm() == 0;
}

MCInst MipsInstrInfo::getNop() const {
return MCInstBuilder(Mips::SLL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should try to support micromips?

@wzssyqa wzssyqa merged commit b96c5df into llvm:main May 14, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MIPS] Compiler crash when using __builtin_unreachable
2 participants