[Hexagon] Report changes in HvxIdioms pass
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Sat, 29 Oct 2022 18:29:58 +0000 (11:29 -0700)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Sat, 29 Oct 2022 18:32:28 +0000 (11:32 -0700)
It can produce some dead code, which is harmless in the end, but breaks
expensive checks when unreported. This should be fixed eventually, but
it's a low priority.

llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp

index f3913a9..6c116b5 100644 (file)
@@ -1405,6 +1405,8 @@ auto HvxIdioms::run() -> bool {
     for (auto It = B.rbegin(); It != B.rend(); ++It) {
       if (auto Fxm = matchFxpMul(*It)) {
         Value *New = processFxpMul(*It, *Fxm);
+        // Always report "changed" for now.
+        Changed = true;
         if (!New)
           continue;
         bool StartOver = !isa<Instruction>(New);