[llvm-commits] [llvm] r164173 - in /llvm/trunk: include/llvm/Transforms/Utils/IntegerDivision.h lib/Transforms/Utils/CMakeLists.txt lib/Transforms/Utils/IntegerDivision.cpp

Eli Friedman eli.friedman at gmail.com
Tue Sep 18 18:48:38 PDT 2012


On Tue, Sep 18, 2012 at 5:42 PM, Evan Cheng <evan.cheng at apple.com> wrote:
>> There are a lot of missed optimization opportunities here, e.g.
>> dividing by a constant; have you considered anything in this area?
>
> Instcombine etc. should have optimized a lot of cases. This is intended to expand the cases that survived optimization.

Instcombine won't touch, e.g. x/3, and there are substantially faster
ways to perform that operation.

-Eli



More information about the llvm-commits mailing list