[PATCH] D103655: [AMDGPU] Handle constant LDS uses from different kernels

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 14:26:52 PDT 2021


tra added a comment.

FYI. I've just got an assertion in the pass. I'll post a reduced reproducer when I have it.
Meanwhile here' the crash info:

  F0616 14:20:09.488221 1150352 logging.cc:107] assert.h assertion failed at third_party/llvm/llvm-project/llvm/include/llvm/Support/Casting.h:269 in typename cast_retty<X, Y *>::ret_type llvm::cast(Y *) [X = llvm::PointerType, Y = llvm::Type]: isa<X>(Val) && "cast<Ty>() argument of incompatible type!"
  *** Check failure stack trace: ***
      @     0x55555d4253df  absl::logging_internal::LogMessage::Die()
      @     0x55555d424e54  absl::logging_internal::LogMessage::SendToLog()
      @     0x55555d424b7f  absl::logging_internal::LogMessage::Flush()
      @     0x55555d425ae9  absl::logging_internal::LogMessageFatal::~LogMessageFatal()
      @     0x55555d4239c4  __assert_fail
      @     0x555558fddf77  llvm::GetElementPtrInst::Create()
      @     0x55555d1077d8  llvm::ConstantExpr::getAsInstruction()
      @     0x55555d201d42  llvm::convertConstantExprsToInstructions()
      @     0x55555d20125c  llvm::convertConstantExprsToInstructions()
      @     0x55555b47e1bd  llvm::AMDGPU::replaceConstantUsesInFunction()
      @     0x55555b2a40d5  (anonymous namespace)::AMDGPULowerModuleLDS::processUsedLDS()
      @     0x55555b2a31df  (anonymous namespace)::AMDGPULowerModuleLDS::runOnModule()
      @     0x55555d1bff34  llvm::legacy::PassManagerImpl::run()
      @     0x555558fae1b9  (anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager()
      @     0x555558fa9537  clang::EmitBackendOutput()
      @     0x555558fa66a5  clang::BackendConsumer::HandleTranslationUnit()
      @     0x555559c210b4  clang::ParseAST()
      @     0x5555599cb106  clang::FrontendAction::Execute()
      @     0x55555993fdcf  clang::CompilerInstance::ExecuteAction()
      @     0x555558bdbff3  clang::ExecuteCompilerInvocation()
      @     0x555558bcfd54  cc1_main()
      @     0x555558bcd6e7  ExecuteCC1Tool()
      @     0x555558bcd3fd  main
      @     0x7ffff7d29bbd  __libc_start_main
      @     0x555558bca0a9  _start


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103655



More information about the llvm-commits mailing list