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

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 18 10:18:50 PDT 2018


xbolva00 added a comment.

Also we should avoid cases like
mov     eax, dword ptr [rsi]
lea     eax, [rax + rdi]

and use:
add     edi, DWORD PTR [rsi]

https://godbolt.org/z/KQAOV-


Repository:
  rL LLVM

https://reviews.llvm.org/D49966





More information about the llvm-commits mailing list