aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2021-05-18 18:02:36 -0700
committerGuozhi Wei <carrot@google.com>2021-05-18 18:02:36 -0700
commit528bc10e95d5f9d6a338f9bab5e91d7265d1cf05 (patch)
tree5f2a4cb8a35b796bd992cec98a46a83a177c34fd /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent58369fce30af484889356f225d89cb0b32009206 (diff)
downloadllvm-528bc10e95d5f9d6a338f9bab5e91d7265d1cf05.zip
llvm-528bc10e95d5f9d6a338f9bab5e91d7265d1cf05.tar.gz
llvm-528bc10e95d5f9d6a338f9bab5e91d7265d1cf05.tar.bz2
[X86FixupLEAs] Transform the sequence LEA/SUB to SUB/SUB
This patch transforms the sequence lea (reg1, reg2), reg3 sub reg3, reg4 to two sub instructions sub reg1, reg4 sub reg2, reg4 Similar optimization can also be applied to LEA/ADD sequence. The modifications to TwoAddressInstructionPass is to ensure the operands of ADD instruction has expected order (the dest register of LEA should be src register of ADD). Differential Revision: https://reviews.llvm.org/D101970
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions