[PATCH][regalloc] Fix the interference calculation for register masks.

Juergen Ributzka juergen at apple.com
Tue Nov 12 20:30:26 PST 2013

Hi @ll,

this patch fixes a false interference for register masks.

Register masks are defined in the normal use/def register slot and therefore any register defined in the register mask should not interfere with a register assigned to the result of the same instruction.

This hasn’t been a problem until now, because register make are used by call instructions and they don't have an explicit def. The patchpoint intrinsic may have an explicit def and the resulting code has unnecessary register copy instructions. This was due to the false interference with the register mask.

This fixes <rdar://problem/15440848>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: regalloc_register_mask.patch
Type: application/octet-stream
Size: 3007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131112/d3054312/attachment.obj>
-------------- next part --------------

More information about the llvm-commits mailing list