[llvm] 041b525 - [CSSPGO] Remove used of PseudoProbeAttributes::Reserved

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 4 17:24:30 PDT 2021


Author: modimo
Date: 2021-08-04T17:23:56-07:00
New Revision: 041b5251415d9c96c9535e6e780770ad066883fe

URL: https://github.com/llvm/llvm-project/commit/041b5251415d9c96c9535e6e780770ad066883fe
DIFF: https://github.com/llvm/llvm-project/commit/041b5251415d9c96c9535e6e780770ad066883fe.diff

LOG: [CSSPGO] Remove used of PseudoProbeAttributes::Reserved

D106861 added usage of PseudoProbeAttributes::Reserved as TailCall however this usage hasn't been committed/reviewed. Removing this usage.

Testing
ninja check-all

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D107514

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCPseudoProbe.h
    llvm/lib/MC/MCPseudoProbe.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCPseudoProbe.h b/llvm/include/llvm/MC/MCPseudoProbe.h
index c1bacef11a41b..76cda75d6878f 100644
--- a/llvm/include/llvm/MC/MCPseudoProbe.h
+++ b/llvm/include/llvm/MC/MCPseudoProbe.h
@@ -123,10 +123,6 @@ class MCPseudoProbeBase {
 
   bool isEntry() const { return Index == PseudoProbeFirstId; }
 
-  bool isTailCall() const {
-    return Attributes & static_cast<uint8_t>(PseudoProbeAttributes::Reserved);
-  }
-
   uint64_t getGuid() const { return Guid; }
 
   uint64_t getIndex() const { return Index; }

diff  --git a/llvm/lib/MC/MCPseudoProbe.cpp b/llvm/lib/MC/MCPseudoProbe.cpp
index 7afe7e4d6c5a2..1e65cbf4acff8 100644
--- a/llvm/lib/MC/MCPseudoProbe.cpp
+++ b/llvm/lib/MC/MCPseudoProbe.cpp
@@ -275,9 +275,6 @@ void MCDecodedPseudoProbe::print(raw_ostream &OS,
   }
   OS << "Index: " << Index << "  ";
   OS << "Type: " << PseudoProbeTypeStr[static_cast<uint8_t>(Type)] << "  ";
-  if (isTailCall()) {
-    OS << "TailCall  ";
-  }
   std::string InlineContextStr = getInlineContextStr(GUID2FuncMAP, ShowName);
   if (InlineContextStr.size()) {
     OS << "Inlined: @ ";


        


More information about the llvm-commits mailing list