[PATCH] D127190: [analyzer][NFC] Add LLVM_UNLIKELY to assumeDualImpl

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 03:49:19 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG17e9ea613894: [analyzer][NFC] Add LLVM_UNLIKELY to assumeDualImpl (authored by martong).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127190/new/

https://reviews.llvm.org/D127190

Files:
  clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp


Index: clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp
===================================================================
--- clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp
+++ clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp
@@ -47,7 +47,7 @@
 ConstraintManager::ProgramStatePair
 ConstraintManager::assumeDualImpl(ProgramStateRef &State,
                                   AssumeFunction &Assume) {
-  if (State->isPosteriorlyOverconstrained())
+  if (LLVM_UNLIKELY(State->isPosteriorlyOverconstrained()))
     return {State, State};
 
   // Assume functions might recurse (see `reAssume` or `tryRearrange`). During


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127190.434764.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220607/5e920605/attachment.bin>


More information about the cfe-commits mailing list