projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd4016b
)
[SCCP] Use the appropriate helper function. NFCI.
author
Davide Italiano
<davide@freebsd.org>
Sun, 11 Dec 2016 21:19:03 +0000
(21:19 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Sun, 11 Dec 2016 21:19:03 +0000
(21:19 +0000)
llvm-svn: 289406
llvm/lib/Transforms/Scalar/SCCP.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/SCCP.cpp
b/llvm/lib/Transforms/Scalar/SCCP.cpp
index
279c710
..
b361a0a
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/
llvm/lib/Transforms/Scalar/SCCP.cpp
@@
-337,7
+337,7
@@
public:
}
private:
- // pushToWorkList - Helper for markConstant/markForcedConstant
+ // pushToWorkList - Helper for markConstant/markForcedConstant
/markOverdefined
void pushToWorkList(LatticeVal &IV, Value *V) {
if (IV.isOverdefined())
return OverdefinedInstWorkList.push_back(V);
@@
-380,7
+380,7
@@
private:
else
dbgs() << *V << '\n');
// Only instructions go on the work list
-
OverdefinedInstWorkList.push_back(
V);
+
pushToWorkList(IV,
V);
}
void mergeInValue(LatticeVal &IV, Value *V, LatticeVal MergeWithV) {