r199137 - CodeGen: Remove a superfluous setCurrentRegionCount

Justin Bogner mail at justinbogner.com
Mon Jan 13 13:24:16 PST 2014


Author: bogner
Date: Mon Jan 13 15:24:15 2014
New Revision: 199137

URL: http://llvm.org/viewvc/llvm-project?rev=199137&view=rev
Log:
CodeGen: Remove a superfluous setCurrentRegionCount

This call looks like it was an artifact of an earlier change, and
doesn't actually make sense. We begin a new region immediately anyway,
so it was mostly harmless.

Modified:
    cfe/trunk/lib/CodeGen/CGStmt.cpp

Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmt.cpp?rev=199137&r1=199136&r2=199137&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Mon Jan 13 15:24:15 2014
@@ -1383,7 +1383,6 @@ void CodeGenFunction::EmitSwitchStmt(con
     const SwitchCase *Case = 0;
     if (FindCaseStatementsForValue(S, ConstantCondValue, CaseStmts,
                                    getContext(), Case)) {
-      PGO.setCurrentRegionCount(0);
       if (Case) {
         RegionCounter CaseCnt = getPGORegionCounter(Case);
         CaseCnt.beginRegion(Builder);





More information about the cfe-commits mailing list