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

This commit is contained in:
Unknown W. Brackets 2017-12-31 16:44:47 -08:00
parent 905d2c2da6
commit 671be24105
3 changed files with 6 additions and 0 deletions

View File

@ -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 File

@ -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

View File

@ -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.