Skip to content
Permalink
Browse files
8259584: SuperWord::fix_commutative_inputs checks in_bb(fin1) instead…
… of in_bb(fin2)

Reviewed-by: shade
  • Loading branch information
Vladimir Kozlov committed Jan 29, 2021
1 parent b7b391b commit 6415d3b82b68682fd19144c8e9c91459f20c7f3a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/opto/superword.cpp
@@ -4705,7 +4705,7 @@ bool SuperWord::fix_commutative_inputs(Node* gold, Node* fix) {
Node* fin2 = fix->in(2);
bool swapped = false;

if (in_bb(gin1) && in_bb(gin2) && in_bb(fin1) && in_bb(fin1)) {
if (in_bb(gin1) && in_bb(gin2) && in_bb(fin1) && in_bb(fin2)) {
if (same_origin_idx(gin1, fin1) &&
same_origin_idx(gin2, fin2)) {
return true; // nothing to fix

1 comment on commit 6415d3b

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 6415d3b Jan 29, 2021

Please sign in to comment.