We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e479892 commit aac37f1Copy full SHA for aac37f1
de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/intermediatelang/optimizer/SimpleRewrites.java
@@ -193,15 +193,6 @@ private void optimizeOpCall(ImOperatorCall opc) {
193
} else {
194
wasViable = false;
195
}
196
- } else if (opc.getOp() == WurstOperator.PLUS
197
- && (left.attrTyp().equalsType(TypesHelper.imInt()) || left.attrTyp().equalsType(TypesHelper.imReal()))
198
- && left.structuralEquals(right)) {
199
- // x + x ---> 2*x
200
- if (!sideEffectAnalysis.hasSideEffects(left)) {
201
- opc.setOp(WurstOperator.MULT);
202
- right.replaceBy(JassIm.ImIntVal(2));
203
- wasViable = true;
204
- }
205
206
207
0 commit comments