[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)
commitb405606432ef00a6b1ca773968cb839c0418870f
tree86a3586861ea3dd20686d254ce6e29fc73dc644d
parente114a1711a04a2911dd826ec3a1874d29718cde0
[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

llvm-svn: 267551
llvm/lib/Target/X86/X86OptimizeLEAs.cpp
llvm/test/CodeGen/X86/lea-opt-memop-check-1.ll [moved from llvm/test/CodeGen/X86/lea-opt-memop-check.ll with 99% similarity]
llvm/test/CodeGen/X86/lea-opt-memop-check-2.ll [new file with mode: 0644]