[llvm] r250850 - [Hexagon] Do not fall-through if there is no CFG edge
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 20 12:30:21 PDT 2015
Author: kparzysz
Date: Tue Oct 20 14:30:21 2015
New Revision: 250850
URL: http://llvm.org/viewvc/llvm-project?rev=250850&view=rev
Log:
[Hexagon] Do not fall-through if there is no CFG edge
Modified:
llvm/trunk/lib/Target/Hexagon/BitTracker.cpp
Modified: llvm/trunk/lib/Target/Hexagon/BitTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/BitTracker.cpp?rev=250850&r1=250849&r2=250850&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/BitTracker.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/BitTracker.cpp Tue Oct 20 14:30:21 2015
@@ -1106,7 +1106,7 @@ void BT::run() {
if (It == End) {
MachineFunction::const_iterator BIt = B.getIterator();
MachineFunction::const_iterator Next = std::next(BIt);
- if (Next != MF.end()) {
+ if (Next != MF.end() && B.isSuccessor(Next)) {
int ThisN = B.getNumber();
int NextN = Next->getNumber();
FlowQ.push(CFGEdge(ThisN, NextN));
More information about the llvm-commits
mailing list