projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Devirtualize Constant::replaceUsesOfWithOnConstant.
[oota-llvm.git]
/
lib
/
IR
/
Value.cpp
diff --git
a/lib/IR/Value.cpp
b/lib/IR/Value.cpp
index eb5c2253f4e0c81278310f85c35fca52e638df20..78d1adb5e7000177d2b5e094cdb8d062bacd4cf6 100644
(file)
--- a/
lib/IR/Value.cpp
+++ b/
lib/IR/Value.cpp
@@
-369,7
+369,7
@@
void Value::replaceAllUsesWith(Value *New) {
// constant because they are uniqued.
if (auto *C = dyn_cast<Constant>(U.getUser())) {
if (!isa<GlobalValue>(C)) {
- C->
replaceUsesOfWithOnConstant
(this, New, &U);
+ C->
handleOperandChange
(this, New, &U);
continue;
}
}