Skip to content

Commit

Permalink
[Hexagon] Report if changes were made in HvxIdioms pass
Browse files Browse the repository at this point in the history
This should fix
```
Pass modifies its input and doesn't report it: Hexagon Vector Combine
Pass modifies its input and doesn't report it UNREACHABLE executed at
[...hecks-debian/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1436!
```
  • Loading branch information
Krzysztof Parzyszek committed Oct 14, 2022
1 parent bc99fd9 commit 6cb2a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,7 @@ auto HvxIdioms::run() -> bool {
RecursivelyDeleteTriviallyDeadInstructions(&*It, &HVC.TLI);
It = StartOver ? B.rbegin()
: cast<Instruction>(New)->getReverseIterator();
Changed = true;
}
}
}
Expand Down

0 comments on commit 6cb2a02

Please sign in to comment.