mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 14:41:05 +00:00
Make sure to remove the Select instruction as well
llvm-svn: 16389
This commit is contained in:
parent
53dea1ce37
commit
f31ae4da07
@ -247,6 +247,7 @@ void PromoteMem2Reg::run() {
|
||||
AST->copyValue(Load, FalseVal);
|
||||
AST->copyValue(Load, NewSI);
|
||||
AST->deleteValue(Load);
|
||||
AST->deleteValue(SI);
|
||||
}
|
||||
|
||||
Load->replaceAllUsesWith(NewSI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user