Skip to content

Commit da37e94

Browse files
committed
change DEBUG_TYPE. And update some comments. NFC
1 parent 64e2710 commit da37e94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/SILOptimizer/Utils/LSBase.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#define DEBUG_TYPE "sil-value-projection"
13+
#define DEBUG_TYPE "sil-lsbase"
1414
#include "swift/SIL/InstructionUtils.h"
1515
#include "swift/SILOptimizer/Utils/LSBase.h"
1616
#include "llvm/Support/Debug.h"
@@ -28,7 +28,7 @@ removeLSLocations(LSLocationValueMap &Values, LSLocationList &NextLevel) {
2828
}
2929

3030
//===----------------------------------------------------------------------===//
31-
// SILValue Projection
31+
// LSValue
3232
//===----------------------------------------------------------------------===//
3333
void
3434
LSValue::expand(SILValue Base, SILModule *M, LSValueList &Vals,
@@ -125,6 +125,10 @@ LSValue::reduce(LSLocation &Base, SILModule *M, LSLocationValueMap &Values,
125125
return Values.begin()->second.materialize(InsertPt);
126126
}
127127

128+
129+
//===----------------------------------------------------------------------===//
130+
// LSLocation
131+
//===----------------------------------------------------------------------===//
128132
bool
129133
LSLocation::isMustAliasLSLocation(const LSLocation &RHS, AliasAnalysis *AA) {
130134
// If the bases are not must-alias, the locations may not alias.

0 commit comments

Comments
 (0)