[HotColdSplit] Fix variable name spelling
authorAditya Kumar <1894981+hiraditya@users.noreply.github.com>
Thu, 13 Aug 2020 05:38:03 +0000 (22:38 -0700)
committerAditya Kumar <1894981+hiraditya@users.noreply.github.com>
Thu, 13 Aug 2020 05:50:08 +0000 (22:50 -0700)
llvm/lib/Transforms/IPO/HotColdSplitting.cpp

index a83ca58..ad7df06 100644 (file)
@@ -78,8 +78,8 @@ STATISTIC(NumColdRegionsOutlined, "Number of cold regions outlined.");
 
 using namespace llvm;
 
-static cl::opt<bool> EnableStaticAnalyis("hot-cold-static-analysis",
-                              cl::init(true), cl::Hidden);
+static cl::opt<bool> EnableStaticAnalysis("hot-cold-static-analysis",
+                                          cl::init(true), cl::Hidden);
 
 static cl::opt<int>
     SplittingThreshold("hotcoldsplit-threshold", cl::init(2), cl::Hidden,
@@ -599,7 +599,7 @@ bool HotColdSplitting::outlineColdRegions(Function &F, bool HasProfileSummary) {
       continue;
 
     bool Cold = (BFI && PSI->isColdBlock(BB, BFI)) ||
-                (EnableStaticAnalyis && unlikelyExecuted(*BB, PSI, BFI));
+                (EnableStaticAnalysis && unlikelyExecuted(*BB, PSI, BFI));
     if (!Cold)
       continue;