[llvm] r299683 - NewGVN: Fix a small formatting issue in performSymbolicLoadEvaluation.

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 11:52:53 PDT 2017


Author: dannyb
Date: Thu Apr  6 13:52:53 2017
New Revision: 299683

URL: http://llvm.org/viewvc/llvm-project?rev=299683&view=rev
Log:
NewGVN: Fix a small formatting issue in performSymbolicLoadEvaluation.

Modified:
    llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=299683&r1=299682&r2=299683&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Thu Apr  6 13:52:53 2017
@@ -1079,9 +1079,9 @@ const Expression *NewGVN::performSymboli
       // defining access has a different type, or it is a pointer produced by
       // certain memory operations that cause the memory to have a fixed value
       // (IE things like calloc).
-      const Expression *CoercionResult = performSymbolicLoadCoercion(
-          LI->getType(), LoadAddressLeader, LI, DefiningInst, DefiningAccess);
-      if (CoercionResult)
+      if (const auto *CoercionResult =
+              performSymbolicLoadCoercion(LI->getType(), LoadAddressLeader, LI,
+                                          DefiningInst, DefiningAccess))
         return CoercionResult;
     }
   }




More information about the llvm-commits mailing list