aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/InstCombine/InstCombine.h
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2013-01-09 00:13:41 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2013-01-09 00:13:41 +0000
commit935e35d2b9f889566207b76a7026b63a1619742c (patch)
treecc26ce74146b052bea87a9ca28314767d6cef72b /lib/Transforms/InstCombine/InstCombine.h
parentb6714227eda5d499f7667fc865f931126a8dc488 (diff)
downloadexternal_llvm-935e35d2b9f889566207b76a7026b63a1619742c.zip
external_llvm-935e35d2b9f889566207b76a7026b63a1619742c.tar.gz
external_llvm-935e35d2b9f889566207b76a7026b63a1619742c.tar.bz2
Consider expression "0.0 - X" as the negation of X if
- this expression is explicitly marked no-signed-zero, or - no-signed-zero of this expression can be derived from some context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombine.h')
-rw-r--r--lib/Transforms/InstCombine/InstCombine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombine.h b/lib/Transforms/InstCombine/InstCombine.h
index 959daa2..a36b1e6 100644
--- a/lib/Transforms/InstCombine/InstCombine.h
+++ b/lib/Transforms/InstCombine/InstCombine.h
@@ -211,7 +211,7 @@ public:
private:
bool ShouldChangeType(Type *From, Type *To) const;
Value *dyn_castNegVal(Value *V) const;
- Value *dyn_castFNegVal(Value *V) const;
+ Value *dyn_castFNegVal(Value *V, bool NoSignedZero=false) const;
Type *FindElementAtOffset(Type *Ty, int64_t Offset,
SmallVectorImpl<Value*> &NewIndices);
Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);