[PATCH] D28527: Check for register clobbers when merging a vreg live range with a reserved physreg in RegisterCoalescer.
James Y Knight via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 15 20:12:50 PST 2017
jyknight added inline comments.
================
Comment at: llvm/trunk/test/CodeGen/AArch64/regcoal-physreg.mir:78
+ ; Need a def of x18 so that it's not deduced as "constant".
+ %x18 = COPY %xzr
+ %7 = COPY %x18
----------------
qcolombet wrote:
> You could use something else than x18 to avoid the !allocatable case that Matthias mentioned, right?
> What I am saying is that the comment is a bit misleading as it is, because this is expected when register are not allocatable.
The bug only exhibits for reserved registers in the first place (and only, then, if it is also clobbered by a call), so another register wouldn't be appropriate.
Repository:
rL LLVM
https://reviews.llvm.org/D28527
More information about the llvm-commits
mailing list