Pre-commit test case for D101970
authorGuozhi Wei <carrot@google.com>
Mon, 10 May 2021 21:47:54 +0000 (14:47 -0700)
committerGuozhi Wei <carrot@google.com>
Mon, 10 May 2021 21:47:54 +0000 (14:47 -0700)
commita0fed635fe1701470062495a6ffee1c608f3f1bc
tree4e0f81e9439d16c0a8c6ce06c967c127c2348622
parent8b9c15c2819bc4736e2c8315c6e0e71e8b7483bf
Pre-commit test case for D101970

This is a test case for D101970, which shows the optimization opportunity for

    lea (reg1, reg2), reg3
    sub reg3, reg4

to

    sub reg1, reg4
    sub reg2, reg4

Differential Revision: https://reviews.llvm.org/D102010
llvm/test/CodeGen/X86/lea-opt2.ll [new file with mode: 0644]