[llvm] 62881fd - Fix HexagonGenExtract return status
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 11:42:50 PDT 2020
Author: serge-sans-paille
Date: 2020-07-13T20:41:59+02:00
New Revision: 62881fda5852b9a5960c3f8c26e864d5085d11bb
URL: https://github.com/llvm/llvm-project/commit/62881fda5852b9a5960c3f8c26e864d5085d11bb
DIFF: https://github.com/llvm/llvm-project/commit/62881fda5852b9a5960c3f8c26e864d5085d11bb.diff
LOG: Fix HexagonGenExtract return status
Differential Revision: https://reviews.llvm.org/D83460
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonGenExtract.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonGenExtract.cpp b/llvm/lib/Target/Hexagon/HexagonGenExtract.cpp
index 342ca21525c5..d9307190ae16 100644
--- a/llvm/lib/Target/Hexagon/HexagonGenExtract.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonGenExtract.cpp
@@ -221,15 +221,16 @@ bool HexagonGenExtract::convert(Instruction *In) {
}
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))
More information about the llvm-commits
mailing list