projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[RS4GC] Use an value handle to help isolate errors quickly
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
ConstantHoisting.cpp
diff --git
a/lib/Transforms/Scalar/ConstantHoisting.cpp
b/lib/Transforms/Scalar/ConstantHoisting.cpp
index af3edcf7228fc4e0860ed40244bafff3b95e6fc0..84f7f5fff5b594b746aead66ee52810c57d6df24 100644
(file)
--- a/
lib/Transforms/Scalar/ConstantHoisting.cpp
+++ b/
lib/Transforms/Scalar/ConstantHoisting.cpp
@@
-365,9
+365,9
@@
void ConstantHoisting::collectConstantCandidates(ConstCandMapType &ConstCandMap,
/// into an instruction itself.
void ConstantHoisting::collectConstantCandidates(Function &Fn) {
ConstCandMapType ConstCandMap;
/// into an instruction itself.
void ConstantHoisting::collectConstantCandidates(Function &Fn) {
ConstCandMapType ConstCandMap;
- for (
Function::iterator
BB : Fn)
- for (
BasicBlock::iterator Inst : *
BB)
- collectConstantCandidates(ConstCandMap, Inst);
+ for (
BasicBlock &
BB : Fn)
+ for (
Instruction &Inst :
BB)
+ collectConstantCandidates(ConstCandMap,
&
Inst);
}
/// \brief Find the base constant within the given range and rebase all other
}
/// \brief Find the base constant within the given range and rebase all other