summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/BDCE.cpp
diff options
context:
space:
mode:
authorNico Rieck <nico.rieck@gmail.com>2015-08-06 19:10:45 +0000
committerNico Rieck <nico.rieck@gmail.com>2015-08-06 19:10:45 +0000
commit78199518c43a04fecf9886fa86202677f6a1525d (patch)
tree3dbee125e2fe66aa50c46625093cc7741aadf766 /llvm/lib/Transforms/Scalar/BDCE.cpp
parenta7bf96ab5c6971d9bd86eb0c87ea4fc9411d663f (diff)
downloadbcm5719-llvm-78199518c43a04fecf9886fa86202677f6a1525d.tar.gz
bcm5719-llvm-78199518c43a04fecf9886fa86202677f6a1525d.zip
Rename inst_range() to instructions() for consistency. NFC
llvm-svn: 244248
Diffstat (limited to 'llvm/lib/Transforms/Scalar/BDCE.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/BDCE.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/BDCE.cpp b/llvm/lib/Transforms/Scalar/BDCE.cpp
index 7252db0a6cd..909a86f740b 100644
--- a/llvm/lib/Transforms/Scalar/BDCE.cpp
+++ b/llvm/lib/Transforms/Scalar/BDCE.cpp
@@ -272,7 +272,7 @@ bool BDCE::runOnFunction(Function& F) {
SmallPtrSet<Instruction*, 128> Visited;
// Collect the set of "root" instructions that are known live.
- for (Instruction &I : inst_range(F)) {
+ for (Instruction &I : instructions(F)) {
if (!isAlwaysLive(&I))
continue;
@@ -365,7 +365,7 @@ bool BDCE::runOnFunction(Function& F) {
// which have no side effects and do not influence the control flow or return
// value of the function, and may therefore be deleted safely.
// NOTE: We reuse the Worklist vector here for memory efficiency.
- for (Instruction &I : inst_range(F)) {
+ for (Instruction &I : instructions(F)) {
// For live instructions that have all dead bits, first make them dead by
// replacing all uses with something else. Then, if they don't need to
// remain live (because they have side effects, etc.) we can remove them.
OpenPOWER on IntegriCloud