Skip to content

Commit 7bbad4f

Browse files
committed
PeepholeOpt: Remove unnecessary check for null TargetInstrInfo
This can never happen.
1 parent a9d2834 commit 7bbad4f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/CodeGen/PeepholeOptimizer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,11 +1991,6 @@ ValueTrackerResult ValueTracker::getNextSourceFromRegSequence() {
19911991
// turn that into an assertion.
19921992
return ValueTrackerResult();
19931993

1994-
if (!TII)
1995-
// We could handle the REG_SEQUENCE here, but we do not want to
1996-
// duplicate the code from the generic TII.
1997-
return ValueTrackerResult();
1998-
19991994
SmallVector<RegSubRegPairAndIdx, 8> RegSeqInputRegs;
20001995
if (!TII->getRegSequenceInputs(*Def, DefIdx, RegSeqInputRegs))
20011996
return ValueTrackerResult();

0 commit comments

Comments
 (0)