[PATCH] D142444: [IPSCCP][FuncSpec] Fix compiler crash 60191.

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 24 06:26:07 PST 2023


labrinea added inline comments.


================
Comment at: llvm/test/Transforms/FunctionSpecialization/compiler-crash-60191.ll:1
+; RUN: opt -S -mtriple=amdgcn-amd-amdhsa --passes="default<O3>" < %s
+
----------------
jhuber6 wrote:
> labrinea wrote:
> > nikic wrote:
> > > Can you avoid the triple in the test?
> > > 
> > > Also, is it possible to reduce the test such that it only requires running ipsccp, and not the whole opt pipeline?
> > I couldn't get the compiler crash without the triple, or if I further reduced the test. I'll try harder. If I change the pass to "ipsccp<func-spec>" or just "ipsccp" (func-spec is implied by default) the test will still crash.
> The fact that this crashes only on `amdgcn-amd-amdhsa` is weird, see https://godbolt.org/z/1h1fdPs4c. @arsenm, do you have any idea what it could be? It works fine with `nvptx64-nvidia-cuda` FWIW.
It's not crashing only on that target, I have successfully reduced it further. Will upload a revised patch soon.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142444



More information about the llvm-commits mailing list