topperc wrote:

> I spent some time trying to write a test that should fail before, but doesn't 
> after, but it doesn't happen - I presume because x0 is reasonably dealt with 
> by the allocator. This maybe suggests the patch isn't needed? I'm not sure 
> why we do this for GPRs then.

I think the original issue was copy propagation folding "mv a0, x0" into an 
inline assembly source as "x0". The instruction being used in the assembly was 
one that treated x0 as a special encoding. So there was a difference between x0 
and a register containing the value 0.

https://github.com/llvm/llvm-project/pull/112563
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to