mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
Fix one more place where debug info affected
codegen (speculative execution). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee167a729e
commit
990afedb3a
@ -1069,9 +1069,12 @@ static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *BB1) {
|
||||
}
|
||||
|
||||
// If we get here, we can hoist the instruction. Try to place it
|
||||
// before the icmp instruction preceeding the conditional branch.
|
||||
// before the icmp instruction preceding the conditional branch.
|
||||
BasicBlock::iterator InsertPos = BI;
|
||||
if (InsertPos != BIParent->begin())
|
||||
if (InsertPos != BIParent->begin())
|
||||
--InsertPos;
|
||||
// Skip debug info between condition and branch.
|
||||
while (InsertPos != BIParent->begin() && isa<DbgInfoIntrinsic>(InsertPos))
|
||||
--InsertPos;
|
||||
if (InsertPos == BrCond && !isa<PHINode>(BrCond)) {
|
||||
SmallPtrSet<Instruction *, 4> BB1Insns;
|
||||
|
Loading…
Reference in New Issue
Block a user