More enhancements to register optimization algorithms.
[fw/sdcc] / src / pic / pcode.h
index 7d896723a3c1b6f014be82f4f2e1cdc32e464092..c6d1ec2b22aa0f8f63d5370dc3830647eff27874 100644 (file)
@@ -310,9 +310,12 @@ typedef struct pCodeOpLit
 typedef struct pCodeOpImmd
 {
   pCodeOp pcop;
-  int offset;                   /* low,med, or high byte of immediat value */
-  int index;                    /* add this to the immediate value */
-  unsigned _const:1;           /* is in code space    */
+  int offset;           /* low,med, or high byte of immediat value */
+  int index;            /* add this to the immediate value */
+  unsigned _const:1;    /* is in code space    */
+
+  int rIdx;             /* If this immd points to a register */
+  struct regs *r;       /* then this is the reg. */
 
 } pCodeOpImmd;