[llvm-commits] [PATCH] Missing check for FlagNW in ScalarEvolution analysis

Nick Lewycky nicholas at mxc.ca
Thu Nov 3 22:16:55 PDT 2011


Brendon Cahoon wrote:
>
> This small patch adds the FlagNW flag to an existing check for NoWrap in
> HowManyLessThans. Without the check for FlagNW, the function returns
> CountNotCompute on some loops where it should be able to determine the
> number of times a back edge will execute. The test case in the patch
> shows an example loop.

Looks great, you even included a test, no regressions in llvm-test. Do 
you have commit access or would you like me to commit it for you?

Nick



More information about the llvm-commits mailing list