[Patch] [AArch64] Fix registerAllocator assigns same register for base and wback in pre/post-index load and store

Steven Wu stevenwu at apple.com
Fri Aug 8 17:15:55 PDT 2014


Hi

This patch fix a bug that sometimes register allocator may assign same register as base and writeback register in pre/post-index loads and stores for AArch64.
According to ARMv8 manual, such result will have uncertain behaviors and clang as will reject them as well. Adding earlyclobber constraints to avoid them.
Since this behavior will depend on the register allocator so I am not sure how to produce a test. I can provide a testcase if anyone want to reproduce the problem.

Patch attached. Please review and commit it for me.

Thanks

Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postindex.patch
Type: application/octet-stream
Size: 3365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140808/e444357f/attachment.obj>
-------------- next part --------------




More information about the llvm-commits mailing list