@@ -204,7 +204,7 @@ class SelectOptimizeImpl {
204204 // / is returned.
205205 Value *getTrueValue (bool HonorInverts = true ) const {
206206 if (Inverted && HonorInverts)
207- return getFalseValue (false );
207+ return getFalseValue (/* HonorInverts= */ false );
208208 if (auto *Sel = dyn_cast<SelectInst>(I))
209209 return Sel->getTrueValue ();
210210 // Or(zext) case - The true value is Or(X), so return nullptr as the value
@@ -220,7 +220,7 @@ class SelectOptimizeImpl {
220220 // / `select(c, x|1, x)`)
221221 Value *getFalseValue (bool HonorInverts = true ) const {
222222 if (Inverted && HonorInverts)
223- return getTrueValue (false );
223+ return getTrueValue (/* HonorInverts= */ false );
224224 if (auto *Sel = dyn_cast<SelectInst>(I))
225225 return Sel->getFalseValue ();
226226 // Or(zext) case - return the operand which is not the zext.
@@ -658,8 +658,8 @@ void SelectOptimizeImpl::convertProfitableSIGroups(SelectGroups &ProfSIGroups) {
658658 // Delete the unconditional branch that was just created by the split.
659659 StartBlock->getTerminator ()->eraseFromParent ();
660660
661- // Move any debug/pseudo instructions that were in-between the select
662- // group to the newly-created end block.
661+ // Move any debug/pseudo instructions and not's that were in-between the
662+ // select group to the newly-created end block.
663663 SmallVector<Instruction *, 2 > SinkInstrs;
664664 auto DIt = SI.getI ()->getIterator ();
665665 while (&*DIt != LastSI.getI ()) {
@@ -793,7 +793,7 @@ void SelectOptimizeImpl::collectSelectGroups(BasicBlock &BB,
793793 continue ;
794794 }
795795
796- // Skip not(select, if the not is part of the same select group
796+ // Skip not(select(..)) , if the not is part of the same select group
797797 if (match (NI, m_Not (m_Specific (SI.getCondition ())))) {
798798 ++BBIt;
799799 continue ;
0 commit comments