git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294926
91177308-0d34-0410-b5e6-
96231b3b80d8
}
static void patchReplacementInstruction(Instruction *I, Value *Repl) {
- auto *ReplInst = dyn_cast<Instruction>(Repl);
+ auto *ReplInst = dyn_cast<Instruction>(Repl);
if (!ReplInst)
return;
}
}
- for (CongruenceClass *CC : CongruenceClasses) {
+ for (CongruenceClass *CC : reverse(CongruenceClasses)) {
// Track the equivalent store info so we can decide whether to try
// dead store elimination.
SmallVector<ValueDFS, 8> PossibleDeadStores;