Permalink
Browse files

irjit: Add extra temps to make lwl/swl/etc. easier.

  • Loading branch information...
unknownbrackets committed Jan 1, 2018
1 parent 905d2c2 commit 671be241051d318a0ea18a892aaf9d9609106568
Showing with 6 additions and 0 deletions.
  1. +2 −0 Core/MIPS/IR/IRInst.cpp
  2. +2 −0 Core/MIPS/IR/IRInst.h
  3. +2 −0 Core/MIPS/IR/IRPassSimplify.cpp
View
@@ -207,6 +207,8 @@ const char *GetGPRName(int r) {
switch (r) {
case IRTEMP_0: return "irtemp0";
case IRTEMP_1: return "irtemp1";
case IRTEMP_2: return "irtemp2";
case IRTEMP_3: return "irtemp3";
case IRTEMP_LHS: return "irtemp_lhs";
case IRTEMP_RHS: return "irtemp_rhs";
default: return "(unk)";
View
@@ -275,6 +275,8 @@ enum IRFpCompareMode {
enum {
IRTEMP_0 = 192,
IRTEMP_1,
IRTEMP_2,
IRTEMP_3,
IRTEMP_LHS, // Reserved for use in branches
IRTEMP_RHS, // Reserved for use in branches
@@ -662,6 +662,8 @@ bool PurgeTemps(const IRWriter &in, IRWriter &out) {
switch (dest) {
case IRTEMP_0:
case IRTEMP_1:
case IRTEMP_2:
case IRTEMP_3:
case IRTEMP_LHS:
case IRTEMP_RHS:
// Unlike other ops, these don't need to persist between blocks.

0 comments on commit 671be24

Please sign in to comment.