We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1042ddc commit b761471Copy full SHA for b761471
llvm/lib/CodeGen/PeepholeOptimizer.cpp
@@ -2048,9 +2048,9 @@ ValueTrackerResult ValueTracker::getNextSourceFromInsertSubreg() {
2048
// Get the TRI and check if the inserted sub-register overlaps with the
2049
// sub-register we are tracking.
2050
const TargetRegisterInfo *TRI = MRI.getTargetRegisterInfo();
2051
- if (!TRI || !(TRI->getSubRegIndexLaneMask(DefSubReg) &
2052
- TRI->getSubRegIndexLaneMask(InsertedReg.SubIdx))
2053
- .none())
+ if ((TRI->getSubRegIndexLaneMask(DefSubReg) &
+ TRI->getSubRegIndexLaneMask(InsertedReg.SubIdx))
+ .any())
2054
return ValueTrackerResult();
2055
// At this point, the value is available in v0 via the same subreg
2056
// we used for Def.
0 commit comments