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

Unified Diff: src/IceClFlags.h

Issue 1255303004: Add -reorder-basic-blocks option and fix nop insertion (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: minor fix Created 5 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/IceClFlags.h
diff --git a/src/IceClFlags.h b/src/IceClFlags.h
index 97420eaa4c7ce870ef86eabde0a7d3215c13287a..b46935664739494839aa20d79f93ff842b00ede1 100644
--- a/src/IceClFlags.h
+++ b/src/IceClFlags.h
@@ -160,6 +160,11 @@ public:
return RandomizeAndPoolImmediatesThreshold;
}
+ bool shouldReorderBasicBlocks() const { return ReorderBasicBlocks; }
+ void setShouldReorderBasicBlocks(bool NewValue) {
+ ReorderBasicBlocks = NewValue;
+ }
+
void setShouldReorderFunctions(bool Option) { ReorderFunctions = Option; }
bool shouldReorderFunctions() const { return ReorderFunctions; }
@@ -236,6 +241,7 @@ private:
bool PhiEdgeSplit;
bool RandomNopInsertion;
bool RandomRegAlloc;
+ bool ReorderBasicBlocks;
bool ReorderFunctions;
bool ReorderGlobalVariables;
bool ReorderPooledConstants;

Powered by Google App Engine
This is Rietveld 408576698