HomePhabricator

[X86] PR26575: Fix LEA optimization pass.

Authored by aturetsk on Feb 16 2016, 4:47 AM.

Description

[X86] PR26575: Fix LEA optimization pass.

Add a missing check for a type of address displacement operand of the load/store instruction being a candidate for LEA substitution.

Ref: https://llvm.org/bugs/show_bug.cgi?id=26575

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

llvm-svn: 260959

Details

Committed
aturetskFeb 16 2016, 4:47 AM
Differential Revision
D17261: [X86] PR26575: Fix LEA optimization pass.
Parents
rG2c3ffc04f39d: Replace getLoopForInst by getLoopForStmt
Branches
Unknown
Tags
Unknown