Skip to content

Commit f444c02

Browse files
SergeyShch01arsenm
andauthored
Update llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent 090c61b commit f444c02

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5436,12 +5436,10 @@ bool LSRInstance::SortLSRUses() {
54365436

54375437
// If there are too many forlmulae then LSRUses w/ less formulae
54385438
// go first to save compilation time
5439-
if (LExpensive != RExpensive) {
5439+
if (LExpensive != RExpensive)
54405440
return RExpensive;
5441-
}
5442-
if (LExpensive) {
5441+
if (LExpensive)
54435442
return L->Formulae.size() < R->Formulae.size();
5444-
}
54455443

54465444
// LSRUses w/ many registers and formulae go first to avoid too big
54475445
// reduction of considered solutions count

0 commit comments

Comments
 (0)