Skip to content

Commit abf3297

Browse files
fhahntru
authored andcommitted
[SCEV] Increase FoldID bits size cover common cases.
This should fix the regressions introduced by a53d940 by making sure no dynamic allocations are needed in the common case, while retaining support for arbitrary SCEV expressions. Alternative to D144335. Compile-time impact: * NewPM-O3: -0.11% * NewPM-ReleaseThinLTO: -0.10% *NewPM-ReleaseLTO-g: -0.08% https://llvm-compile-time-tracker.com/compare.php?from=df016a9525e5722dfd1e1e1632cec3ed7b33bc8a&to=c1c64de4a973bcecaddbc4038a539234eb39413b&stat=instructions:u Reviewed By: vitalybuka, nikic Differential Revision: https://reviews.llvm.org/D144382 (cherry picked from commit eddecd3)
1 parent d42c232 commit abf3297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/ScalarEvolution.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ class ScalarEvolution {
12971297
bool loopIsFiniteByAssumption(const Loop *L);
12981298

12991299
class FoldID {
1300-
SmallVector<unsigned, 4> Bits;
1300+
SmallVector<unsigned, 5> Bits;
13011301

13021302
public:
13031303
void addInteger(unsigned long I) {

0 commit comments

Comments
 (0)