[PATCH] D123394: [CodeGen] Late cleanup of redundant address/immediate definitions.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 09:20:49 PDT 2022


efriedma added a comment.

For ARM/jump-table-islands.ll, the point of the test is to force the jump table to be embedded in the middle of a code sequence, and check we correctly jump over it.  (On ARM, we use an "adr" instruction with range +-4KB to compute the address of the table.)  It uses a giant integer type (`%BigInt = type i5500`) to force a bunch of code to be generated for a small amount of IR, scheduled the way we want.

If we're not generating enough code for the giant integers, increasing the bitwidth of the giant integers is the first thing to try, I think.  If that doesn't work, maybe just convert it to an MIR test using "-start-before=arm-cp-islands", so it's not affected by your patch.


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

https://reviews.llvm.org/D123394



More information about the llvm-commits mailing list