[PATCH] D147740: [llvm-profdata] Refactoring Sample Profile Reader to increase FDO build speed using MD5 as key to Sample Profile map

Vlad Vereschaka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 16:36:22 PDT 2023


vvereschaka added a comment.

The error messages (VC)
https://lab.llvm.org/buildbot/#/builders/119/builds/13870/steps/7/logs/stdio

  63.990 [3705/51/830] Building CXX object lib\CodeGen\CMakeFiles\LLVMCodeGen.dir\MIRSampleProfile.cpp.obj
  FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MIRSampleProfile.cpp.obj 
  C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_ENABLE_ASSERTIONS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\as-builder-2\x-aarch64\build\lib\CodeGen -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\lib\CodeGen -IC:\buildbot\as-builder-2\x-aarch64\build\include -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\include -external:IC:\buildbot\.zlib-win32\include -external:W0 -D__OPTIMIZE__ /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /MT /O2 /Ob2  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Folib\CodeGen\CMakeFiles\LLVMCodeGen.dir\MIRSampleProfile.cpp.obj /Fdlib\CodeGen\CMakeFiles\LLVMCodeGen.dir\LLVMCodeGen.pdb /FS -c C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\lib\CodeGen\MIRSampleProfile.cpp
  C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\include\llvm/ProfileData/SampleProf.h(1423): error C3200: 'llvm::DenseMap<llvm::hash_code,ValueT,llvm::DenseMapInfo<llvm::hash_code,void>,llvm::detail::DenseMapPair<KeyT,ValueT>>': invalid template argument for template parameter 'MapT', expected a class template
          with
          [
              ValueT=llvm::sampleprof::FunctionSamples,
              KeyT=llvm::hash_code
          ]
  C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\include\llvm/ProfileData/SampleProf.h(1427): error C3200: 'llvm::DenseMap<llvm::hash_code,ValueT,llvm::DenseMapInfo<llvm::hash_code,void>,llvm::detail::DenseMapPair<KeyT,ValueT>>': invalid template argument for template parameter 'MapT', expected a class template
          with
          [
              ValueT=llvm::sampleprof::FunctionSamples,
              KeyT=llvm::hash_code
          ]
  C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\include\llvm/ProfileData/SampleProf.h(1446): error C3200: 'llvm::DenseMap<llvm::hash_code,ValueT,llvm::DenseMapInfo<llvm::hash_code,void>,llvm::detail::DenseMapPair<KeyT,ValueT>>': invalid template argument for template parameter 'MapT', expected a class template
          with
          [
              ValueT=llvm::sampleprof::FunctionSamples,
              KeyT=llvm::hash_code
          ]


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147740



More information about the llvm-commits mailing list