Skip to content

Commit 5d5a98a

Browse files
jgu222gfxbot
authored andcommitted
After changing dessa again, need to use getNodeValue,
which was missed in the previous commit Change-Id: Id2736a8677014f29650d13e92746df6e6cf54775
1 parent 572491e commit 5d5a98a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

IGC/Compiler/CISACodeGen/DeSSA.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,14 +1193,15 @@ void DeSSA::getAllValuesInCongruentClass(
11931193
// a sequence of insertElement is in congruent class. The RootValue
11941194
// has its liveness modified to cover all InsertElements that are
11951195
// grouped together.
1196-
Value* RootV = V;
1196+
Value* RootV = nullptr;
11971197
if (IGC_IS_FLAG_ENABLED(EnableDeSSAAlias))
11981198
{
1199-
RootV = getRootValue(RootV);
1199+
RootV = getNodeValue(V);
12001200
}
12011201
else {
1202-
RootV = getInsEltRoot(RootV);
1202+
RootV = getInsEltRoot(V);
12031203
}
1204+
assert(RootV && "ICE: Node value should not be nullptr!");
12041205
ValsInCC.push_back(RootV);
12051206
auto RI = RegNodeMap.find(RootV);
12061207
if (RI != RegNodeMap.end()) {

0 commit comments

Comments
 (0)