You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// InlineSpiller create a new VirtReg with same RC as Original here:
InlineSpiller::reMaterializeFor() {
...
// Allocate a new register for the remat.
Register NewVReg = Edit->createFrom(Original);
...
}
As this only happens with -enable-deferred-spilling, I am not quite sure if this needs fixing, even though it in theory it probably should be.
TargetInstrInfo::reMaterialize() is virtual, and it would make sense to override this and in case of a MemFoldPseudo make sure all VR128 regs are constrained to VF128.
It wouldn't hurt if InlinSpiller / LiveRangeEdit (or even BaseT::reMaterialize() ) could constrain the vreg, but it does not check the MCDescriptor. As it is constrained by the target in the first place, maybe the target should keep that responsibility in reMaterialize().
tc_memfold_vr128.tar.gz
// In input:
// %55 is spilled and a reg/mem is produced with %52 constrained to VF128Bit in SystemZInstrInfo::foldMemoryOperandImpl():
// Then %52 is also spilled, but it is rematerialized with a new vreg of the original RC:
// InlineSpiller create a new VirtReg with same RC as Original here:
As this only happens with -enable-deferred-spilling, I am not quite sure if this needs fixing, even though it in theory it probably should be.
TargetInstrInfo::reMaterialize() is virtual, and it would make sense to override this and in case of a MemFoldPseudo make sure all VR128 regs are constrained to VF128.
It wouldn't hurt if InlinSpiller / LiveRangeEdit (or even BaseT::reMaterialize() ) could constrain the vreg, but it does not check the MCDescriptor. As it is constrained by the target in the first place, maybe the target should keep that responsibility in reMaterialize().
@uweigand @dominik-steenken
The text was updated successfully, but these errors were encountered: