Skip to content

Commit 604eff6

Browse files
committed
[SelectionDAG] Update comments that refer to MVT::Glue as a 'flag'
1 parent e11148f commit 604eff6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ static void AddNodeIDNode(FoldingSetNodeID &ID, const SDNode *N) {
963963
/// doNotCSE - Return true if CSE should not be performed for this node.
964964
static bool doNotCSE(SDNode *N) {
965965
if (N->getValueType(0) == MVT::Glue)
966-
return true; // Never CSE anything that produces a flag.
966+
return true; // Never CSE anything that produces a glue result.
967967

968968
switch (N->getOpcode()) {
969969
default: break;
@@ -975,7 +975,7 @@ static bool doNotCSE(SDNode *N) {
975975
// Check that remaining values produced are not flags.
976976
for (unsigned i = 1, e = N->getNumValues(); i != e; ++i)
977977
if (N->getValueType(i) == MVT::Glue)
978-
return true; // Never CSE anything that produces a flag.
978+
return true; // Never CSE anything that produces a glue result.
979979

980980
return false;
981981
}
@@ -1209,7 +1209,7 @@ bool SelectionDAG::RemoveNodeFromCSEMaps(SDNode *N) {
12091209
}
12101210
#ifndef NDEBUG
12111211
// Verify that the node was actually in one of the CSE maps, unless it has a
1212-
// flag result (which cannot be CSE'd) or is one of the special cases that are
1212+
// glue result (which cannot be CSE'd) or is one of the special cases that are
12131213
// not subject to CSE.
12141214
if (!Erased && N->getValueType(N->getNumValues()-1) != MVT::Glue &&
12151215
!N->isMachineOpcode() && !doNotCSE(N)) {
@@ -5886,7 +5886,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
58865886
SDNode *N;
58875887
SDVTList VTs = getVTList(VT);
58885888
SDValue Ops[] = {N1};
5889-
if (VT != MVT::Glue) { // Don't CSE flag producing nodes
5889+
if (VT != MVT::Glue) { // Don't CSE glue producing nodes
58905890
FoldingSetNodeID ID;
58915891
AddNodeIDNode(ID, Opcode, VTs, Ops);
58925892
void *IP = nullptr;
@@ -7217,7 +7217,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
72177217
break;
72187218
}
72197219

7220-
// Memoize node if it doesn't produce a flag.
7220+
// Memoize node if it doesn't produce a glue result.
72217221
SDNode *N;
72227222
SDVTList VTs = getVTList(VT);
72237223
SDValue Ops[] = {N1, N2, N3};
@@ -8356,7 +8356,7 @@ SDValue SelectionDAG::getMemIntrinsicNode(unsigned Opcode, const SDLoc &dl,
83568356
(int)Opcode >= ISD::FIRST_TARGET_MEMORY_OPCODE)) &&
83578357
"Opcode is not a memory-accessing opcode!");
83588358

8359-
// Memoize the node unless it returns a flag.
8359+
// Memoize the node unless it returns a glue result.
83608360
MemIntrinsicSDNode *N;
83618361
if (VTList.VTs[VTList.NumVTs-1] != MVT::Glue) {
83628362
FoldingSetNodeID ID;
@@ -9999,7 +9999,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, SDVTList VTList,
99999999
#endif
1000010000
}
1000110001

10002-
// Memoize the node unless it returns a flag.
10002+
// Memoize the node unless it returns a glue result.
1000310003
SDNode *N;
1000410004
if (VTList.VTs[VTList.NumVTs-1] != MVT::Glue) {
1000510005
FoldingSetNodeID ID;

0 commit comments

Comments
 (0)