mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Oy! When reverting r68073, I added in experimental code. Sorry...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -253,6 +253,15 @@ public:
|
||||
/// it returns end()
|
||||
iterator getFirstTerminator();
|
||||
|
||||
/// isOnlyReachableViaFallthough - Return true if this basic block has
|
||||
/// exactly one predecessor and the control transfer mechanism between
|
||||
/// the predecessor and this block is a fall-through.
|
||||
bool isOnlyReachableByFallthrough() const {
|
||||
return !pred_empty() &&
|
||||
next(pred_begin()) == pred_end() &&
|
||||
(*pred_begin())->getFirstTerminator() == (*pred_begin())->end();
|
||||
}
|
||||
|
||||
void pop_front() { Insts.pop_front(); }
|
||||
void pop_back() { Insts.pop_back(); }
|
||||
void push_back(MachineInstr *MI) { Insts.push_back(MI); }
|
||||
|
Reference in New Issue
Block a user