x86 isel tweak: use lea (%reg,%reg) instead of lea (,%reg,2).
authorDan Gohman <gohman@apple.com>
Wed, 22 Jul 2009 23:26:55 +0000 (23:26 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 22 Jul 2009 23:26:55 +0000 (23:26 +0000)
commit41d0b9d952c1d329c80e091160e71a21570ef18c
treebc31c1906f884f84dab108f72b37f1195f7fe0df
parente02a0aa3c6fb77addbd0ddb573ecc4aebaccc8e0
x86 isel tweak: use lea (%reg,%reg) instead of lea (,%reg,2).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76817 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/avoid-lea-scale2.ll [new file with mode: 0644]