File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1904,11 +1904,8 @@ ValueTrackerResult ValueTracker::getNextSourceFromCopy() {
1904
1904
assert (Def->getNumOperands () - Def->getNumImplicitOperands () == 2 &&
1905
1905
" Invalid number of operands" );
1906
1906
assert (!Def->hasImplicitDef () && " Only implicit uses are allowed" );
1907
+ assert (!Def->getOperand (DefIdx).getSubReg () && " no subregister defs in SSA" );
1907
1908
1908
- if (Def->getOperand (DefIdx).getSubReg () != DefSubReg)
1909
- // If we look for a different subreg, it means we want a subreg of src.
1910
- // Bails as we do not support composing subregs yet.
1911
- return ValueTrackerResult ();
1912
1909
// Otherwise, we want the whole source.
1913
1910
const MachineOperand &Src = Def->getOperand (1 );
1914
1911
if (Src.isUndef ())
You can’t perform that action at this time.
0 commit comments