diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-01 03:49:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-01 03:49:38 +0000 |
commit | 7fbcc98f20c062273bf16ce9832f40e5b8a205c6 (patch) | |
tree | c88ad644469a76759d1eec12f802e4a4fef69ba0 /include/llvm/CodeGen/FastISel.h | |
parent | 20d4be151b54feb18aa1e5cc04033a4aa64137ae (diff) | |
download | llvm-7fbcc98f20c062273bf16ce9832f40e5b8a205c6.tar.gz llvm-7fbcc98f20c062273bf16ce9832f40e5b8a205c6.tar.bz2 llvm-7fbcc98f20c062273bf16ce9832f40e5b8a205c6.tar.xz |
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
Diffstat (limited to 'include/llvm/CodeGen/FastISel.h')
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 113dcc7c78..8e1f8fe1f0 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -307,6 +307,8 @@ protected: } private: + bool SelectLoad(const User *I); + bool SelectBinaryOp(const User *I, unsigned ISDOpcode); bool SelectFNeg(const User *I); |