[PATCH] D18576: Initial implementation of optimization bisect

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 14:24:39 PDT 2016


MatzeB added a comment.

In http://reviews.llvm.org/D18576#399022, @joker.eph wrote:

> In http://reviews.llvm.org/D18576#399015, @MatzeB wrote:
>
> > -bool FunctionPass::skipOptnoneFunction(const Function &F) const {
> >  +bool FunctionPass::skipFunction(const Function &F) const {
> >  +  LLVMContext &C = F.getContext();
> >  +  if (C.getOptBisect().shouldSkipPass(F))
> >  +    return true;
>
>
> I don't really get how the LLVMContext becomes involved here?


We have to count how many passes we skipped/did not skip and compare that against the bisect number. This is global information.


Repository:
  rL LLVM

http://reviews.llvm.org/D18576





More information about the llvm-commits mailing list