mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Nick Lewycky's patch.
While hosting instruction check PHI node. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57025 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1051,7 +1051,7 @@ static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *BB1) {
|
||||
BasicBlock::iterator InsertPos = BI;
|
||||
if (InsertPos != BIParent->begin())
|
||||
--InsertPos;
|
||||
if (InsertPos == BrCond) {
|
||||
if (InsertPos == BrCond && !isa<PHINode>(BrCond)) {
|
||||
SmallPtrSet<Instruction *, 4> BB1Insns;
|
||||
for(BasicBlock::iterator BB1I = BB1->begin(), BB1E = BB1->end();
|
||||
BB1I != BB1E; ++BB1I)
|
||||
|
Reference in New Issue
Block a user