[llvm] DAG: Replace legal type check in EmitCopyFromReg (PR #177788)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 07:35:39 PST 2026


uweigand wrote:

> > I don't think you can allow a type legally in a register of a different class than the one announced with `addRegisterClass`.
> 
> Yes you can. You can have as many legal types in as many register classes as you like. addRegisterClass is annoyingly limiting, but that only serves to select the default class to use for a type which doesn't prevent the use of others

Ah, I see.  OK, then this should indeed work.  I'll have a closer look at your patch.  Thanks!

https://github.com/llvm/llvm-project/pull/177788


More information about the llvm-commits mailing list