Index: src/IceTargetLoweringX86BaseImpl.h |
diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h |
index 79b54774b674ccefd84ed667f22dd324f2674e1b..af05b7b8872180186500ab6d53d36526bc7d7389 100644 |
--- a/src/IceTargetLoweringX86BaseImpl.h |
+++ b/src/IceTargetLoweringX86BaseImpl.h |
@@ -443,6 +443,11 @@ template <typename TraitsType> void TargetX86Base<TraitsType>::translateO2() { |
Func->processAllocas(SortAndCombineAllocas); |
Func->dump("After Alloca processing"); |
+ if (getFlags().getEnableExperimental()) { |
+ Func->localCSE(); |
+ Func->dump("After Local CSE"); |
+ } |
+ |
if (!getFlags().getEnablePhiEdgeSplit()) { |
// Lower Phi instructions. |
Func->placePhiLoads(); |