[PATCH] D49966: [X86] Performing DAG pruning before selection of LEA instructions.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 1 08:44:53 PST 2019


craig.topper added a comment.

In D49966#1343135 <https://reviews.llvm.org/D49966#1343135>, @xbolva00 wrote:

> Does this  handle also e.g.
>
> int foo(int i,int c) {
>
>   c *= 2*i+1;
>   return c;
>
> }
>
> ? We miss lea here..


Do you have a god bolt link? I’m seeing an lea for that except on Intel CPUs that have a slow 3 src lea instruction. On those CPUs we issue an LEA, ADD, IMUL


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D49966/new/

https://reviews.llvm.org/D49966





More information about the llvm-commits mailing list