OSDN Git Service

[X86] PR27502: Fix the LEA optimization pass.
authorAndrey Turetskiy <andrey.turetskiy@gmail.com>
Tue, 26 Apr 2016 12:18:12 +0000 (12:18 +0000)
committerAndrey Turetskiy <andrey.turetskiy@gmail.com>
Tue, 26 Apr 2016 12:18:12 +0000 (12:18 +0000)
commit8ddb8b4b8d7452000305442117d3e470e0a1803a
tree6371bc021d24bce4561c6fc65f36796be07dfa77
parent314a1b6403bc971a9d68d7eed3a0ce1359d03656
[X86] PR27502: Fix the LEA optimization pass.

Handle MachineBasicBlock as a memory displacement operand in the LEA optimization pass.

Differential Revision: http://reviews.llvm.org/D19409

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267551 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86OptimizeLEAs.cpp
test/CodeGen/X86/lea-opt-memop-check-1.ll [moved from test/CodeGen/X86/lea-opt-memop-check.ll with 99% similarity]
test/CodeGen/X86/lea-opt-memop-check-2.ll [new file with mode: 0644]