Skip to content

Commit

Permalink
Several fixes and improvements
Browse files Browse the repository at this point in the history
* Fixes an error allocating registers for work-group info
* Optimizes multiplication of known unsigned values
* Adds exit-criteria to propagateMoves, improving speed, see #100
  • Loading branch information
doe300 committed Jun 30, 2018
1 parent 910cce4 commit 0010998
Show file tree
Hide file tree
Showing 5 changed files with 329 additions and 282 deletions.
3 changes: 2 additions & 1 deletion src/analysis/LivenessAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ FastSet<const Local*> LivenessAnalysis::analyzeLiveness(const intermediate::Inte
if(instr->hasValueType(ValueType::LOCAL) &&
!instr->hasDecoration(vc4c::intermediate::InstructionDecorations::ELEMENT_INSERTION))
{
if(instr->hasConditionalExecution())
if(instr->hasConditionalExecution() &&
!instr->hasDecoration(intermediate::InstructionDecorations::ELEMENT_INSERTION))
{
auto condReadIt = conditionalReads.find(instr->getOutput()->local);
if(condReadIt != conditionalReads.end() && condReadIt->second == instr->conditional &&
Expand Down
Loading

0 comments on commit 0010998

Please sign in to comment.