diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-09-13 14:36:55 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-09-13 14:36:55 +0000 |
commit | b558ae21255e427b97b49e6490e9eeca0fecff48 (patch) | |
tree | 6a6434070d5a05940aae4b21ffe1d925a36af54c /llvm/lib/Target/Hexagon/BitTracker.cpp | |
parent | 10897f1807610802f9b5cdc0f6792adece7bfd3f (diff) | |
download | bcm5719-llvm-b558ae21255e427b97b49e6490e9eeca0fecff48.tar.gz bcm5719-llvm-b558ae21255e427b97b49e6490e9eeca0fecff48.zip |
[Hexagon] Clear the flow queue after visiting a single instruction
llvm-svn: 281339
Diffstat (limited to 'llvm/lib/Target/Hexagon/BitTracker.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/BitTracker.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/BitTracker.cpp b/llvm/lib/Target/Hexagon/BitTracker.cpp index 29b2d9f9429..c0591c332de 100644 --- a/llvm/lib/Target/Hexagon/BitTracker.cpp +++ b/llvm/lib/Target/Hexagon/BitTracker.cpp @@ -1054,6 +1054,11 @@ void BT::visit(const MachineInstr &MI) { assert(!MI.isBranch() && "Only non-branches are allowed"); InstrExec.insert(&MI); visitNonBranch(MI); + // The call to visitNonBranch could propagate the changes until a branch + // is actually visited. This could result in adding CFG edges to the flow + // queue. Since the queue won't be processed, clear it. + while (!FlowQ.empty()) + FlowQ.pop(); } |