XZR cannot be used to hold pointers, while SP can. Change the pointer register class from GPR64RegClass to GPR64spRegClass, which includes SP but excludes XZR.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This change is actually laying ground for fixing an inline asm bug (PR33134). Test cases will be added along with rest of the fix in a follow up change.
Comment Actions
This seems to be a fix for a correctness bug. If you do have a follow-up change that will have test cases that demonstrate this fixes things, maybe it's best to combine this change with the follow up change, especially since this patch is a single-line change?