aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetLowering.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-07-23 23:55:03 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-07-23 23:55:03 +0000
commit1f67c63cb23ba5d405452d72bb8892df6b7ccd4f (patch)
tree2c8958a3dcc371a6c8495fc37da4a979198ae112 /include/llvm/Target/TargetLowering.h
parent8ea83d499935f406f9fc190de783710c2293ab63 (diff)
downloadexternal_llvm-1f67c63cb23ba5d405452d72bb8892df6b7ccd4f.zip
external_llvm-1f67c63cb23ba5d405452d72bb8892df6b7ccd4f.tar.gz
external_llvm-1f67c63cb23ba5d405452d72bb8892df6b7ccd4f.tar.bz2
DAGCombiner: Pass the correct type to TargetLowering::isF(Abs|Neg)Free
This commit also implements these functions for R600 and removes a test case that was relying on the buggy behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r--include/llvm/Target/TargetLowering.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 09a93f9..2a383e4 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -1174,13 +1174,15 @@ public:
/// Return true if an fneg operation is free to the point where it is never
/// worthwhile to replace it with a bitwise operation.
- virtual bool isFNegFree(EVT) const {
+ virtual bool isFNegFree(EVT VT) const {
+ assert(VT.isFloatingPoint());
return false;
}
/// Return true if an fneg operation is free to the point where it is never
/// worthwhile to replace it with a bitwise operation.
- virtual bool isFAbsFree(EVT) const {
+ virtual bool isFAbsFree(EVT VT) const {
+ assert(VT.isFloatingPoint());
return false;
}