X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FScalar%2FBDCE.cpp;h=909a86f740b8a5677ef2600231c1d8f0c0ff7977;hp=7252db0a6cdcddf4b0551656e6f059c3fb219f3b;hb=3dd7bf5e76229bdcd1d0271bef80e12d8cee0067;hpb=1c618a4dd42bc51ff3893d95ff2c734175b2bf8c diff --git a/lib/Transforms/Scalar/BDCE.cpp b/lib/Transforms/Scalar/BDCE.cpp index 7252db0a6cd..909a86f740b 100644 --- a/lib/Transforms/Scalar/BDCE.cpp +++ b/lib/Transforms/Scalar/BDCE.cpp @@ -272,7 +272,7 @@ bool BDCE::runOnFunction(Function& F) { SmallPtrSet 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.