Convert a subtract into a negate and an add when it helps x86
authorDan Gohman <gohman@apple.com>
Mon, 11 May 2009 18:02:53 +0000 (18:02 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 11 May 2009 18:02:53 +0000 (18:02 +0000)
commit3cd90a18bb862b9115b69a031282925f8c1afcfc
tree093a7bd3821d82321c15bbba7e188d87f784cbd8
parent17230e893e122791c8ad2c44cf2c5cfc0303d07d
Convert a subtract into a negate and an add when it helps x86
address folding.

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