Refactor: remove the now unused flag variable in OptStackOps()
This commit is contained in:
@@ -2026,8 +2026,7 @@ unsigned OptStackOps (CodeSeg* S)
|
|||||||
unsigned PushedRegs = 0; /* Track if the same regs are used after the push */
|
unsigned PushedRegs = 0; /* Track if the same regs are used after the push */
|
||||||
int RhsAChgIndex; /* Track if rhs is changed more than once */
|
int RhsAChgIndex; /* Track if rhs is changed more than once */
|
||||||
int RhsXChgIndex; /* Track if rhs is changed more than once */
|
int RhsXChgIndex; /* Track if rhs is changed more than once */
|
||||||
int IsRegAOptFunc = 0; /* Whether to use the RegA-only optimizations */
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Initialize,
|
Initialize,
|
||||||
Search,
|
Search,
|
||||||
@@ -2130,11 +2129,9 @@ unsigned OptStackOps (CodeSeg* S)
|
|||||||
*/
|
*/
|
||||||
if (SameRegXValueAtOp (&Data, E)) {
|
if (SameRegXValueAtOp (&Data, E)) {
|
||||||
Data.OptFunc = FindFunc (FuncRegATable, FUNC_COUNT (FuncRegATable), E->Arg);
|
Data.OptFunc = FindFunc (FuncRegATable, FUNC_COUNT (FuncRegATable), E->Arg);
|
||||||
IsRegAOptFunc = 1;
|
|
||||||
}
|
}
|
||||||
if (Data.OptFunc == 0) {
|
if (Data.OptFunc == 0) {
|
||||||
Data.OptFunc = FindFunc (FuncTable, FUNC_COUNT (FuncTable), E->Arg);
|
Data.OptFunc = FindFunc (FuncTable, FUNC_COUNT (FuncTable), E->Arg);
|
||||||
IsRegAOptFunc = 0;
|
|
||||||
}
|
}
|
||||||
if (Data.OptFunc) {
|
if (Data.OptFunc) {
|
||||||
/* Disallow removing Rhs loads if the registers are used */
|
/* Disallow removing Rhs loads if the registers are used */
|
||||||
|
|||||||
Reference in New Issue
Block a user