[llvm-dev] Looking for tests for class ARMConstantIslands (original) (raw)

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Nov 16 03:04:35 PST 2017


Hi Ming,

On 16 November 2017 at 09:20, 章明 via llvm-dev <llvm-dev at lists.llvm.org> wrote:

Are these all relevant to the pass? Are there other relevant tests?

Your best bet is probably what's called "MIR tests", which are written directly in the lower-level MachineInstr based representation and run only the relevant pass. This gives earlier passes less opportunity to mess with your code and break the really tight spacing requirements needed to trigger ARMConstantIslands.

So take a look at constant-islands-cfg.mir and v6-jumptable-clobber.mir, especially the first which looks like it was written after the MIR representation improved (it has many fewer extra useless details).

Cheers.

Tim.



More information about the llvm-dev mailing list