Currently we don't support subregs in InlineSpiller::foldMemoryOperand() because targets may not deal with them correctly.
It seems that X86, at least, already does the right thing when folding a load from a stack slot when it only needs the low (e.g. not "ah") subreg.
This fixes PR30832.
I am not sure I understand the intent. I believe this is just a problem of wording.
Basically, are you referring to this case:
v1 = ld
op v1.sub
or this case:
v1.sub = ld
op v1.sub
I believe this is the former and adding the example would help :).