Small correction for #3067.
authorEugene Rozenfeld <erozen@microsoft.com>
Wed, 10 Feb 2016 23:50:41 +0000 (15:50 -0800)
committerEugene Rozenfeld <erozen@microsoft.com>
Wed, 10 Feb 2016 23:50:41 +0000 (15:50 -0800)
The code to change multiplication to shift shouldn't be
under LEA_AVAILABLE since the code to process multiplication
by power of 2 isn't.

src/jit/morph.cpp

index ba1e0da..8243d7a 100644 (file)
@@ -10839,7 +10839,7 @@ CM_ADD_OP:
                     changeToShift = true;
                 }
             }
-
+#endif // LEA_AVAILABLE
             if (changeToShift)
             {
                 // vnStore is null before the ValueNumber phase has run
@@ -10855,7 +10855,6 @@ CM_ADD_OP:
 
                 goto DONE_MORPHING_CHILDREN;
             }
-#endif // LEA_AVAILABLE
         }
         else if (fgOperIsBitwiseRotationRoot(oper))
         {