mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
When removing instructions from the analysis, be sure to check the confirmed
flag when determining what to do with dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7800479260
commit
521a20207c
@ -248,7 +248,8 @@ Instruction* MemoryDependenceAnalysis::getDependency(Instruction* query,
|
||||
void MemoryDependenceAnalysis::removeInstruction(Instruction* rem) {
|
||||
// Figure out the new dep for things that currently depend on rem
|
||||
Instruction* newDep = NonLocal;
|
||||
if (depGraphLocal[rem].first != NonLocal) {
|
||||
if (depGraphLocal[rem].first != NonLocal &&
|
||||
depGraphLocal[rem].second) {
|
||||
// If we have dep info for rem, set them to it
|
||||
BasicBlock::iterator RI = depGraphLocal[rem].first;
|
||||
RI++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user