sparse - extra options for developers


tools [options]… file.c`


This file is a complement of sparse’s man page meant to document options only useful for development on sparse itself.



Dump the IR at each of the given passes.

The passes currently understood are:

  • linearize
  • mem2reg
  • final

The default pass is linearize.


If =last is used, all passes after the specified one are disabled. By default all passes are enabled.

The passes currently understood are:

  • linearize (can’t be disabled)
  • mem2reg
  • optim

Print all compound global data symbols with their sizes and alignment.


Add OP_DEATHNOTE annotations to dead pseudos.


Dump the dominance tree after its calculation.


Dump the IR after all optimization passes.


Dump the reverse postorder traversal of the CFG.