[cfe-commits] patch: mark selector reference loads as invariant

Peter Cooper peter_cooper at apple.com
Wed Nov 9 15:55:46 PST 2011


The attached patch adds invariant metadata to the loads from selector references.  

This allows the llvm optimizer to consider these loads to be from constant data which is true here as selector references don't' change once the program has started.

Please review and let me know if it looks ok.

Thanks,
Pete

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6027699.patch
Type: application/octet-stream
Size: 1190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111109/18510a8c/attachment.obj>


More information about the cfe-commits mailing list