diff options
author | Francisco Jerez <[email protected]> | 2012-03-21 21:43:26 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 21:54:01 +0200 |
commit | 3e9150cd961b2399e402e940400deae11ec7852f (patch) | |
tree | 13eda3dd9391fe9788b4bec3f7cff1e572005910 /src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp | |
parent | d6d1f0e4a25c9fbefce7485d77617855a8ea956a (diff) |
nv50/ir: Add support code for calculating the clobber set of a BB or function.
Diffstat (limited to 'src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp index 07d8decee54..7c8f2e97fb5 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp @@ -415,6 +415,16 @@ Function::orderInstructions(ArrayList &result) return result.getSize(); } +void +Function::buildDefSets() +{ + for (unsigned i = 0; i <= loopNestingBound; ++i) + buildDefSetsPreSSA(BasicBlock::get(cfgExit), cfg.nextSequence()); + + for (ArrayList::Iterator bi = allBBlocks.iterator(); !bi.end(); bi.next()) + BasicBlock::get(bi)->liveSet.marker = false; +} + bool Pass::run(Program *prog, bool ordered, bool skipPhi) { |