Teach fast-isel to avoid loading a value from memory when it's already
authorDan Gohman <gohman@apple.com>
Thu, 1 Jul 2010 03:49:38 +0000 (03:49 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 1 Jul 2010 03:49:38 +0000 (03:49 +0000)
commit7fbcc98f20c062273bf16ce9832f40e5b8a205c6
treec88ad644469a76759d1eec12f802e4a4fef69ba0
parent20d4be151b54feb18aa1e5cc04033a4aa64137ae
Teach fast-isel to avoid loading a value from memory when it's already
available in a register. This is pretty primitive, but it reduces the
number of instructions in common testcases by 4%.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107380 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/FastISel.h
lib/CodeGen/SelectionDAG/FastISel.cpp
test/CodeGen/X86/fast-isel-loads.ll [new file with mode: 0644]