[PATCH] D143515: [AsmPrinter] Add hook to override constant folding for printing.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 10:52:57 PST 2023


arsenm added a comment.

In D143515#4110761 <https://reviews.llvm.org/D143515#4110761>, @krzysz00 wrote:

> Re this being a hack, agreed. I'm open to doing something more principled like you suggested.
>
> On the missing tests front, the problem is that to add a test, I'd need to swap the GCN data layout to include a `p7:128:128:128:32` term, which, without a change like this one, causes the existing tests to crash.
>
> Would it be more appropriate to make the data layout change first and then `XFAIL` (or comment out the relevant parts of) `nulls.ll`, to land that first, to land this despite a general lack of tests, or to put this and the data layout changes in one larger commit?

Why would they crash? Just make the datalayout change first, there's little reason to put that one off


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143515



More information about the llvm-commits mailing list