[LLVMdev] request for help writing a register allocator

Lang Hames lhames at gmail.com
Tue Oct 20 13:36:27 PDT 2009


>
> > So if AL is a sub-register of EAX (assume this is true even if not),
> > then will getAliasSet(AL) include EAX, and will getAliasSet(EAX)
> > include AL? If yes, then I think I'm OK.
>
> Yes, I believe so.


Yep - that's correct. Watch out for a potential gotcha though:
getAliasSet(EAX) does not include EAX itself (and in general physregs do not
appear in their alias sets).




> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/fff0c121/attachment.html>


More information about the llvm-dev mailing list