LLVM currently represents floating-point negation as -0.0 - x. Fix

FastISel to recognize this pattern and emit a floating-point
negation using xor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-09-03 22:53:57 +00:00
parent 4f7228f851
commit 3d45a853db
3 changed files with 40 additions and 0 deletions

View File

@ -300,6 +300,8 @@ protected:
private:
bool SelectBinaryOp(User *I, ISD::NodeType ISDOpcode);
bool SelectFNeg(User *I);
bool SelectGetElementPtr(User *I);
bool SelectCall(User *I);