Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: src/IceTargetLoweringX86BaseImpl.h

Issue 2185193002: Enable Local CSE by default (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Address Comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLoweringX86BaseImpl.h
diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h
index 2acd3312d9b9b74c6a30853cc7cabcab2d2ff59d..eee8f5d3eb79faf66275a9a539525b0255c15d21 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::LCSE_Disabled) {
+ Func->localCSE(getFlags().getLocalCSE() == Ice::LCSE_EnabledSSA);
Func->dump("After Local CSE");
}
if (getFlags().getEnableShortCircuit()) {
« src/IceClFlags.def ('K') | « src/IceDefs.h ('k') | tests_lit/llvm2ice_tests/local-cse.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698