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
This commit is contained in:
Dan Gohman
2010-07-01 03:49:38 +00:00
parent 20d4be151b
commit 7fbcc98f20
3 changed files with 49 additions and 0 deletions
+2
View File
@@ -307,6 +307,8 @@ protected:
}
private:
bool SelectLoad(const User *I);
bool SelectBinaryOp(const User *I, unsigned ISDOpcode);
bool SelectFNeg(const User *I);