[PATCH] D132542: [InstCombine] Use dyn_cast instead of cast in visitPHINode

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 03:47:08 PDT 2022


fhahn added a comment.

In D132542#3745223 <https://reviews.llvm.org/D132542#3745223>, @liaolucy wrote:

> In D132542#3745150 <https://reviews.llvm.org/D132542#3745150>, @fhahn wrote:
>
>> Thanks for tracking this down! Could you please add an instcombine test case for the issue?
>
> Any suggestions for test cases? Is it as simple as possible or the complete ir of the issue?

As simple as possible to reproduce the issue by just running `opt -passes=instcombine`. You can use ` -mllvm -print-on-crash -mllvm -print-module-scope` to get the module before the crash and then use the techniques from https://llvm.org/docs/HowToSubmitABug.html to reduce it to the minimal crashing IR.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132542



More information about the llvm-commits mailing list