[PATCH] [mips] Manually replace JAL pseudo-instructions with their JALR equivalent, instead of using InstAlias.
Toma Tabacu
toma.tabacu at imgtec.com
Fri Jan 30 03:27:50 PST 2015
FYI I've made the following change for the commit.
================
Comment at: lib/Target/Mips/AsmParser/MipsAsmParser.cpp:1630-1633
@@ +1629,6 @@
+ // jal $rd, $rs => jalr $rd, $rs
+ if (inMicroMipsMode())
+ JalrInst.setOpcode(Mips::JALR_MM);
+ else
+ JalrInst.setOpcode(Mips::JALR);
+
----------------
Replaced this with a ternary operator comparison.
http://reviews.llvm.org/D5601
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list