]> granicus.if.org Git - clang/commitdiff
Allow compound assignment expressions to be contracted when licensed by the language...
authorStephen Canon <scanon@apple.com>
Wed, 4 Nov 2015 15:25:38 +0000 (15:25 +0000)
committerStephen Canon <scanon@apple.com>
Wed, 4 Nov 2015 15:25:38 +0000 (15:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252050 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprScalar.cpp

index 602ce4bf5ef9702c2e85624d4c97f8c257c15f80..16d220f966b4c9c07b1636f08c96a757d12ce320 100644 (file)
@@ -2116,7 +2116,7 @@ LValue ScalarExprEmitter::EmitCompoundAssignLValue(
   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);