[llvm] r263374 - ConstantFoldInstruction: avoid wasted calls to ConstantFoldConstantExpression

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 13 13:49:14 PDT 2016


On Sun, Mar 13, 2016 at 12:36 AM, Fiona Glaser via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: escha
> Date: Sat Mar 12 23:36:15 2016
> New Revision: 263374
>
> URL: http://llvm.org/viewvc/llvm-project?rev=263374&view=rev
> Log:
> ConstantFoldInstruction: avoid wasted calls to ConstantFoldConstantExpression
>
> Check to see if all operands are constant before calling simplify on them
> so that we don't perform wasted simplifications.
>

Is this NFC?

Thanks,

--
Davide


More information about the llvm-commits mailing list