[PATCH] Prefer small negative constants in InstCombine
Chris Lattner
clattner at apple.com
Wed Jun 26 21:49:39 PDT 2013
On Jun 26, 2013, at 6:56 AM, Tim Northover <tnorthover at apple.com> wrote:
> Hi,
>
> The attached patch adds a heuristic to ShrinkDemandedConstant so that small negative constants are preferred over large ones even if as an unsigned value the transformation would be an improvement.
This makes a lot of sense to me in principle, but as others have pointed out, an evaluation of its impact would be great. :-)
-Chris
More information about the llvm-commits
mailing list