Skip to content
Commit c37388f1 authored by greg-lunarg's avatar greg-lunarg Committed by Steven Perron
Browse files

Add passes to propagate and eliminate redundant line instructions (#2027). (#2039)

These are bookend passes designed to help preserve line information
across passes which delete, move and clone instructions. The propagation
pass attaches a debug line instruction to every instruction based on
SPIR-V line propagation rules. It should be performed before optimization.
The redundant line elimination pass eliminates all line instructions
which match the previous line instruction. This pass should be performed
at the end of optimization to reduce physical SPIR-V file size.

Fixes #2027.
parent ab76e332
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment