[PATCH] D109090: [PPC64] fix/workaround runtime crash on FreeBSD with llvm12 and later

Alfredo Dal'Ava JĂșnior via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 20 12:56:54 PDT 2021


adalava added a comment.

In D109090#3007009 <https://reviews.llvm.org/D109090#3007009>, @MaskRay wrote:

> I am afraid the root cause is still unknown and this patch just papers over the issue.
> I hope we have a good understanding why having dso_local will cause trouble on FreeBSD powerpc64's -fstack-protector* and fix the root cause instead.

@MaskRay , since the binary works when compiled with -O0 and doesn't work with -O1, I used '-mllvm -opt-bisect-limit=NNN' as clang parameter and found that the binary stops working at the following optimization pass:

  BISECT: running pass (80) PowerPC DAG->DAG Pattern Instruction Selection on function (main) 

May it give some light?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109090



More information about the llvm-commits mailing list