[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)
    Brandon Wu via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Jan 25 18:05:59 PST 2024
    
    
  
================
@@ -464,7 +466,8 @@ void RISCVIntrinsicManagerImpl::CreateRVVIntrinsicDecl(LookupResult &LR,
 bool RISCVIntrinsicManagerImpl::CreateIntrinsicIfFound(LookupResult &LR,
                                                        IdentifierInfo *II,
                                                        Preprocessor &PP) {
-  StringRef Name = II->getName().substr(8);
+  StringRef Name = II->getName();
+  Name.consume_front("__riscv_");
----------------
4vtomat wrote:
Sure~
https://github.com/llvm/llvm-project/pull/77487
    
    
More information about the cfe-commits
mailing list