mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Optimizer: Put constants on left side of compares to match other AstBiOps and extend optimizations. No runtime result change intended.
This commit is contained in:
+3
-3
@@ -225,9 +225,9 @@ private:
|
||||
constwidthp->dtypeFrom (nodep->rhsp()); // unsigned
|
||||
AstCond* newp =
|
||||
new AstCond (nodep->fileline(),
|
||||
new AstLte (nodep->fileline(),
|
||||
nodep->rhsp()->cloneTree(false),
|
||||
constwidthp),
|
||||
new AstGte (nodep->fileline(),
|
||||
constwidthp,
|
||||
nodep->rhsp()->cloneTree(false)),
|
||||
nodep,
|
||||
constzerop);
|
||||
replaceHandle.relink(newp);
|
||||
|
||||
Reference in New Issue
Block a user