[PATCH] D80706: [DAGCombine] Add hook to allow target specific test for sqrt input

Jorge Gorbe Moya via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 17:56:54 PST 2020


jgorbe added a comment.

Found a crash that seems to be caused by this patch. This is a reduced test case:

  extern "C"
  #define a(b, c, args) d(double, b, , args)
  #define d(g, b, c, args) g b args
      a(sqrt, , (double));
  int e;
  double f = sqrt(e);

Building with `clang -target powerpc64le-grtev4-linux-gnu -ffast-math repro.cpp` crashes a top-of-tree clang.

  Do not know how to custom type legalize this operation!                                                                                              
  UNREACHABLE executed at /usr/local/google/home/jgorbe/code/llvm/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:11088!                                   
  PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
  Stack dump:                                                                                                                                          
  [... stack dump omitted for brevity ...]


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80706



More information about the llvm-commits mailing list