[PATCH] D83460: Fix HexagonGenExtract return statu

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 11:42:51 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG62881fda5852: Fix HexagonGenExtract return status (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83460/new/

https://reviews.llvm.org/D83460

Files:
  llvm/lib/Target/Hexagon/HexagonGenExtract.cpp


Index: llvm/lib/Target/Hexagon/HexagonGenExtract.cpp
===================================================================
--- llvm/lib/Target/Hexagon/HexagonGenExtract.cpp
+++ llvm/lib/Target/Hexagon/HexagonGenExtract.cpp
@@ -221,15 +221,16 @@
 }
 
 bool HexagonGenExtract::visitBlock(BasicBlock *B) {
+  bool Changed = false;
+
   // Depth-first, bottom-up traversal.
   for (auto *DTN : children<DomTreeNode*>(DT->getNode(B)))
-    visitBlock(DTN->getBlock());
+    Changed |= visitBlock(DTN->getBlock());
 
   // Allow limiting the number of generated extracts for debugging purposes.
   bool HasCutoff = ExtractCutoff.getPosition();
   unsigned Cutoff = ExtractCutoff;
 
-  bool Changed = false;
   BasicBlock::iterator I = std::prev(B->end()), NextI, Begin = B->begin();
   while (true) {
     if (HasCutoff && (ExtractCount >= Cutoff))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83460.277513.patch
Type: text/x-patch
Size: 841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200713/54c97888/attachment-0001.bin>


More information about the llvm-commits mailing list