aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy David <guyda96@gmail.com>2025-01-21 10:23:10 +0200
committerGuy David <guyda96@gmail.com>2025-01-21 10:28:28 +0200
commitfa1b0c60808d37baf2f7c3db703d8bfa04925e2f (patch)
tree93df4cccc1d46bf75b555bf09e46ffd687b3dcb4
parent79231a86846b7dff09497fc58ea1e82e892052bd (diff)
downloadllvm-users/guy-david/machinelicm-disable-hoisting-all.zip
llvm-users/guy-david/machinelicm-disable-hoisting-all.tar.gz
llvm-users/guy-david/machinelicm-disable-hoisting-all.tar.bz2
[MachineLICM] Disabling hoisting unlikely MI by defaultusers/guy-david/machinelicm-disable-hoisting-all
Stop hoisting computations out of unlikely blocks in loops.
-rw-r--r--llvm/lib/CodeGen/MachineLICM.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp
index 1f6de0d..b229650 100644
--- a/llvm/lib/CodeGen/MachineLICM.cpp
+++ b/llvm/lib/CodeGen/MachineLICM.cpp
@@ -88,17 +88,16 @@ BlockFrequencyRatioThreshold("block-freq-ratio-threshold",
enum class UseBFI { None, PGO, All };
-static cl::opt<UseBFI>
-DisableHoistingToHotterBlocks("disable-hoisting-to-hotter-blocks",
- cl::desc("Disable hoisting instructions to"
- " hotter blocks"),
- cl::init(UseBFI::PGO), cl::Hidden,
- cl::values(clEnumValN(UseBFI::None, "none",
- "disable the feature"),
- clEnumValN(UseBFI::PGO, "pgo",
- "enable the feature when using profile data"),
- clEnumValN(UseBFI::All, "all",
- "enable the feature with/wo profile data")));
+static cl::opt<UseBFI> DisableHoistingToHotterBlocks(
+ "disable-hoisting-to-hotter-blocks",
+ cl::desc("Disable hoisting instructions to"
+ " hotter blocks"),
+ cl::init(UseBFI::All), cl::Hidden,
+ cl::values(clEnumValN(UseBFI::None, "none", "disable the feature"),
+ clEnumValN(UseBFI::PGO, "pgo",
+ "enable the feature when using profile data"),
+ clEnumValN(UseBFI::All, "all",
+ "enable the feature with/wo profile data")));
STATISTIC(NumHoisted,
"Number of machine instructions hoisted out of loops");