* src/SDCCopt.c (killDeadCode): restored original behaviour
[fw/sdcc] / src / SDCCopt.c
index af7d6b6d2e9bf456e6e98ea4c03fc4d2e67ec7d3..f7e67ce66cf3bd6f195da5534f806dc214ff4b21 100644 (file)
@@ -879,14 +879,6 @@ killDeadCode (eBBlock ** ebbs, int count)
              if (IC_RESULT (ic) && isOperandVolatile (IC_RESULT (ic), FALSE))
                continue;
 
-             /* We also cannot remove the iCode, when an operand is volatile.       */
-             /* Even read access can cause side effects on some hardware registers! */
-
-             /* if the left operand is volatile then continue */
-             if (IC_LEFT(ic) && isOperandVolatile (IC_LEFT (ic), TRUE))
-               continue;
-
-
              /* if the result is a temp & isaddr then skip */
              if (IC_RESULT (ic) && POINTER_SET (ic))
                continue;