X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTransforms%2FScalar%2FLoopRerollPass.cpp;h=7f73baa6a8ffed24ae64f2a27a5db21bca6201b1;hb=7ba5769458c072a56fe2a9605e965d10229b54ce;hp=9b295b6d161535893d74f6d6603b801891d00335;hpb=b886fde9afa62670efac756f82cfcee682ea5250;p=oota-llvm.git diff --git a/lib/Transforms/Scalar/LoopRerollPass.cpp b/lib/Transforms/Scalar/LoopRerollPass.cpp index 9b295b6d161..7f73baa6a8f 100644 --- a/lib/Transforms/Scalar/LoopRerollPass.cpp +++ b/lib/Transforms/Scalar/LoopRerollPass.cpp @@ -303,22 +303,6 @@ namespace { // The functions below can be called after we've finished processing all // instructions in the loop, and we know which reductions were selected. - // Is the provided instruction the PHI of a reduction selected for - // rerolling? - bool isSelectedPHI(Instruction *J) { - if (!isa(J)) - return false; - - for (DenseSet::iterator RI = Reds.begin(), RIE = Reds.end(); - RI != RIE; ++RI) { - int i = *RI; - if (cast(J) == PossibleReds[i].getPHI()) - return true; - } - - return false; - } - bool validateSelected(); void replaceSelected();