Skip to content

Commit d53f96b

Browse files
committed
[GR-65033] Don't collect usages of Vector API sink nodes during expansion
1 parent de14bec commit d53f96b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/vector/replacements/vectorapi/VectorAPIExpansionPhase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private static NodeUnionFind collectNodes(StructuredGraph graph, NodeFlood flood
257257
* frame states but not to other macros. We don't want to lose these usages.
258258
*/
259259
for (Node node : flood) {
260-
if (node instanceof VectorAPIMacroNode || node instanceof ValuePhiNode || node instanceof ValueProxyNode) {
260+
if ((node instanceof VectorAPIMacroNode && !(node instanceof VectorAPISinkNode)) || node instanceof ValuePhiNode || node instanceof ValueProxyNode) {
261261
for (Node usage : node.usages()) {
262262
if (usage instanceof ValuePhiNode || usage instanceof ValueProxyNode) {
263263
unionFind.union(node, usage);

0 commit comments

Comments
 (0)