When x86 addresses matching exceeds its recursion limit, check to
authorDan Gohman <gohman@apple.com>
Mon, 13 Aug 2007 20:03:06 +0000 (20:03 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 13 Aug 2007 20:03:06 +0000 (20:03 +0000)
commitbadb2d23d1042a991b8c6e31ff19ffd3f6712570
treee1d981a0b294666f0f96b3e255a359a904b66abd
parenta45d9a15ba45eedc55b7b8cad292afbd4cb57cba
When x86 addresses matching exceeds its recursion limit, check to
see if the base register is already occupied before assuming it can be
used. This fixes bogus code generation in the accompanying testcase.

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