[cfe-commits] r165156 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Oct 3 13:58:05 PDT 2012
Author: d0k
Date: Wed Oct 3 15:58:04 2012
New Revision: 165156
URL: http://llvm.org/viewvc/llvm-project?rev=165156&view=rev
Log:
Always initialize FPContractable.
false is used as a baseline here, we may want to allow contraction in some of
the cases. Found by valgrind.
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=165156&r1=165155&r2=165156&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Wed Oct 3 15:58:04 2012
@@ -1261,6 +1261,7 @@
BinOp.RHS = NextVal;
BinOp.Ty = E->getType();
BinOp.Opcode = BO_Add;
+ BinOp.FPContractable = false;
BinOp.E = E;
return EmitOverflowCheckedBinOp(BinOp);
}
@@ -1446,6 +1447,7 @@
BinOp.LHS = llvm::Constant::getNullValue(BinOp.RHS->getType());
BinOp.Ty = E->getType();
BinOp.Opcode = BO_Sub;
+ BinOp.FPContractable = false;
BinOp.E = E;
return EmitSub(BinOp);
}
@@ -1681,6 +1683,7 @@
OpInfo.RHS = Visit(E->getRHS());
OpInfo.Ty = E->getComputationResultType();
OpInfo.Opcode = E->getOpcode();
+ OpInfo.FPContractable = false;
OpInfo.E = E;
// Load/convert the LHS.
LValue LHSLV = EmitCheckedLValue(E->getLHS(), CodeGenFunction::TCK_Store);
More information about the cfe-commits
mailing list