[PATCH] D32277: Replace slow LEA instructions in X86

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 20:50:39 PDT 2017


aqjune added a comment.

@skatkov Well, the assemblies also included `leal` with `r13` register as well. :)

  102     leal    8(%r14), %eax

->

  102     leal    8(%r13), %eax

The performance gap may be due to the instruction, but I'm not sure. (actually, converting `r14` to `r13` increased performance in this case, but I have no idea what's happening inside CPU..)


https://reviews.llvm.org/D32277





More information about the llvm-commits mailing list