File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1211,6 +1211,9 @@ SpecialCasesDisableLICM::SpecialCasesDisableLICM() : FunctionPass(ID)
1211
1211
1212
1212
bool SpecialCasesDisableLICM::runOnFunction (llvm::Function& F)
1213
1213
{
1214
+ constexpr size_t HIGH_BB_THRESHOLD_FOR_LICM = 2500 ;
1215
+ constexpr size_t HIGH_LOOP_THRESHOLD_FOR_LICM = 450 ;
1216
+
1214
1217
bool Changed = false ;
1215
1218
LoopInfo* LI = nullptr ;
1216
1219
@@ -1220,13 +1223,12 @@ bool SpecialCasesDisableLICM::runOnFunction(llvm::Function& F)
1220
1223
return LI;
1221
1224
};
1222
1225
1223
- if (constexpr size_t HIGH_BB_THRESHOLD_FOR_LICM = 2500 ;
1224
- F.size () > HIGH_BB_THRESHOLD_FOR_LICM)
1226
+ if (F.size () > HIGH_BB_THRESHOLD_FOR_LICM)
1225
1227
{
1226
1228
LI = getLoopInfo ();
1227
1229
1228
- if (constexpr size_t HIGH_LOOP_THRESHOLD_FOR_LICM = 450 ;
1229
- llvm::size (*LI) > HIGH_LOOP_THRESHOLD_FOR_LICM )
1230
+ if (llvm::size (*LI) > HIGH_LOOP_THRESHOLD_FOR_LICM
1231
+ )
1230
1232
{
1231
1233
for (auto * L : *LI)
1232
1234
AddLICMDisableMedatadaToSpecificLoop (*L);
You can’t perform that action at this time.
0 commit comments