[PATCH] D113800: [amdgpu] Don't crash on empty global ctor/dtor

Jon Chesterfield via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 13:35:09 PST 2021


JonChesterfield added a comment.

Is is valid IR. There are several existing test cases with zero length global ctors.

The opt line is checking that @amdgcn.device.init kernels aren't emitted. It's disassembling instead of doing something else because it follows the pattern of lower-multiple-ctor-dtor.ll and lower-ctor-dtor.ll test cases introduced with D105682 <https://reviews.llvm.org/D105682> which missed this case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113800



More information about the llvm-commits mailing list