Consider expression "0.0 - X" as the negation of X if
[oota-llvm.git] / lib / Transforms / InstCombine / InstructionCombining.cpp
index 6f24cdd738c37eddc325605329522df64a868aa0..dc7fe5cf6b5bfe68324b923dcb6fee8c3e3ee8b8 100644 (file)
@@ -516,8 +516,8 @@ Value *InstCombiner::dyn_castNegVal(Value *V) const {
 // instruction if the LHS is a constant negative zero (which is the 'negate'
 // form).
 //
-Value *InstCombiner::dyn_castFNegVal(Value *V) const {
-  if (BinaryOperator::isFNeg(V))
+Value *InstCombiner::dyn_castFNegVal(Value *V, bool IgnoreZeroSign) const {
+  if (BinaryOperator::isFNeg(V, IgnoreZeroSign))
     return BinaryOperator::getFNegArgument(V);
 
   // Constants can be considered to be negated values if they can be folded.