Index: src/IceTargetLoweringX86BaseImpl.h |
diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h |
index 2acd3312d9b9b74c6a30853cc7cabcab2d2ff59d..3bac73300bdd6b3115259e3d223502b64f573a64 100644 |
--- a/src/IceTargetLoweringX86BaseImpl.h |
+++ b/src/IceTargetLoweringX86BaseImpl.h |
@@ -455,8 +455,8 @@ template <typename TraitsType> void TargetX86Base<TraitsType>::translateO2() { |
Func->dump("After LICM"); |
} |
- if (getFlags().getEnableExperimental()) { |
- Func->localCSE(); |
+ if (getFlags().getLocalCSE() != Ice::LCSEOptions::Disabled) { |
+ Func->localCSE(getFlags().getLocalCSE() == Ice::LCSEOptions::EnabledNoSSA); |
Func->dump("After Local CSE"); |
} |
if (getFlags().getEnableShortCircuit()) { |