r252050 - Allow compound assignment expressions to be contracted when licensed by the language or pragma.

Stephen Canon via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 07:25:38 PST 2015


Author: scanon
Date: Wed Nov  4 09:25:38 2015
New Revision: 252050

URL: http://llvm.org/viewvc/llvm-project?rev=252050&view=rev
Log:
Allow compound assignment expressions to be contracted when licensed by the language or pragma.

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=252050&r1=252049&r2=252050&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Wed Nov  4 09:25:38 2015
@@ -2116,7 +2116,7 @@ LValue ScalarExprEmitter::EmitCompoundAs
   OpInfo.RHS = Visit(E->getRHS());
   OpInfo.Ty = E->getComputationResultType();
   OpInfo.Opcode = E->getOpcode();
-  OpInfo.FPContractable = false;
+  OpInfo.FPContractable = E->isFPContractable();
   OpInfo.E = E;
   // Load/convert the LHS.
   LValue LHSLV = EmitCheckedLValue(E->getLHS(), CodeGenFunction::TCK_Store);




More information about the cfe-commits mailing list