HomePhabricator

Fix a miscompilation in the addr mode code trying to implement X | C and X + C…

Authored by lattner on Feb 4 2007, 12:18 PM.

Description

Fix a miscompilation in the addr mode code trying to implement X | C and X + C to promote LEA formation. We would incorrectly apply it in some cases (test) and miss it in others.

This fixes CodeGen/X86/2007-02-04-OrAddrMode.ll

llvm-svn: 33884

Details

Committed
lattnerFeb 4 2007, 12:18 PM
Parents
rG03503b5e31ca: new testcase for x86 backend miscompilation
Branches
Unknown
Tags
Unknown