aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/FastISel.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-03 22:53:57 +0000
committerDan Gohman <gohman@apple.com>2009-09-03 22:53:57 +0000
commit3d45a853db014fdddcdb79424e663dfed5eccbc7 (patch)
treeef59efff710665fe5b607a310afd1f7e22bbaf07 /include/llvm/CodeGen/FastISel.h
parent4f7228f851bc48fe6a729a9d526a0b8de60e48d0 (diff)
downloadexternal_llvm-3d45a853db014fdddcdb79424e663dfed5eccbc7.zip
external_llvm-3d45a853db014fdddcdb79424e663dfed5eccbc7.tar.gz
external_llvm-3d45a853db014fdddcdb79424e663dfed5eccbc7.tar.bz2
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
Diffstat (limited to 'include/llvm/CodeGen/FastISel.h')
-rw-r--r--include/llvm/CodeGen/FastISel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h
index b2cc94d..6cd5519 100644
--- a/include/llvm/CodeGen/FastISel.h
+++ b/include/llvm/CodeGen/FastISel.h
@@ -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);