@@ -204,7 +204,7 @@ class SelectOptimizeImpl {
204
204
// / is returned.
205
205
Value *getTrueValue (bool HonorInverts = true ) const {
206
206
if (Inverted && HonorInverts)
207
- return getFalseValue (false );
207
+ return getFalseValue (/* HonorInverts= */ false );
208
208
if (auto *Sel = dyn_cast<SelectInst>(I))
209
209
return Sel->getTrueValue ();
210
210
// Or(zext) case - The true value is Or(X), so return nullptr as the value
@@ -220,7 +220,7 @@ class SelectOptimizeImpl {
220
220
// / `select(c, x|1, x)`)
221
221
Value *getFalseValue (bool HonorInverts = true ) const {
222
222
if (Inverted && HonorInverts)
223
- return getTrueValue (false );
223
+ return getTrueValue (/* HonorInverts= */ false );
224
224
if (auto *Sel = dyn_cast<SelectInst>(I))
225
225
return Sel->getFalseValue ();
226
226
// Or(zext) case - return the operand which is not the zext.
@@ -658,8 +658,8 @@ void SelectOptimizeImpl::convertProfitableSIGroups(SelectGroups &ProfSIGroups) {
658
658
// Delete the unconditional branch that was just created by the split.
659
659
StartBlock->getTerminator ()->eraseFromParent ();
660
660
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.
663
663
SmallVector<Instruction *, 2 > SinkInstrs;
664
664
auto DIt = SI.getI ()->getIterator ();
665
665
while (&*DIt != LastSI.getI ()) {
@@ -793,7 +793,7 @@ void SelectOptimizeImpl::collectSelectGroups(BasicBlock &BB,
793
793
continue ;
794
794
}
795
795
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
797
797
if (match (NI, m_Not (m_Specific (SI.getCondition ())))) {
798
798
++BBIt;
799
799
continue ;
0 commit comments