git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298199
91177308-0d34-0410-b5e6-
96231b3b80d8
// Touch all the predicates that depend on this instruction.
void NewGVN::markPredicateUsersTouched(Instruction *I) {
const auto Result = PredicateToUsers.find(I);
- if (Result != PredicateToUsers.end())
+ if (Result != PredicateToUsers.end()) {
for (auto *User : Result->second)
TouchedInstructions.set(InstrDFS.lookup(User));
+ PredicateToUsers.erase(Result);
+ }
}
// Touch the instructions that need to be updated after a congruence class has a