Skip to content

Commit 4cbf43f

Browse files
committed
Fix comment
Signed-off-by: John Lu <John.Lu@amd.com>
1 parent a276310 commit 4cbf43f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10690,11 +10690,11 @@ bool SIInstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, Register SrcReg,
1069010690
return false;
1069110691

1069210692
// If s_or_b32 result is unused (i.e. it is effectively a 64-bit s_cmp_lg of
10693-
// a register pair) and the input is a 64-bit foldableSelect then transform:
10693+
// a register pair) and the inputs are the hi and lo-halves of a 64-bit
10694+
// foldableSelect then transform:
1069410695
//
10695-
// (s_or_b32 (S_CSELECT_B64 (non-zero imm), 0), 0 => (S_CSELECT_B64
10696-
// (non-zero
10697-
// imm), 0)
10696+
// (s_or_b32 [hi and lo (S_CSELECT_B64 (non-zero imm), 0)] =>
10697+
// (S_CSELECT_B64 (non-zero imm), 0)
1069810698
if (Def->getOpcode() == AMDGPU::S_OR_B32 &&
1069910699
MRI->use_nodbg_empty(Def->getOperand(0).getReg())) {
1070010700
MachineOperand OrOpnd1 = Def->getOperand(1);

0 commit comments

Comments
 (0)