mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Ignore dbg intrinsics while propagating conditional expression info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -137,7 +137,7 @@ void CondProp::SimplifyPredecessors(BranchInst *BI) {
|
||||
if (!PN->hasOneUse()) return;
|
||||
|
||||
BasicBlock *BB = BI->getParent();
|
||||
if (&*BB->begin() != PN || &*next(BB->begin()) != BI)
|
||||
if (!isTerminatorFirstRelevantInsn (BB, BI))
|
||||
return;
|
||||
|
||||
// Ok, we have this really simple case, walk the PHI operands, looking for
|
||||
@@ -171,7 +171,7 @@ void CondProp::SimplifyPredecessors(SwitchInst *SI) {
|
||||
if (!PN->hasOneUse()) return;
|
||||
|
||||
BasicBlock *BB = SI->getParent();
|
||||
if (&*BB->begin() != PN || &*next(BB->begin()) != SI)
|
||||
if (!isTerminatorFirstRelevantInsn (BB, SI))
|
||||
return;
|
||||
|
||||
bool RemovedPreds = false;
|
||||
|
||||
Reference in New Issue
Block a user