[PATCH] D21189: Create subranges for new intervals resulting from live interval splitting
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 19:32:34 PDT 2016
MatzeB accepted this revision.
MatzeB added a comment.
This revision is now accepted and ready to land.
LGTM (just nitpicks below).
================
Comment at: lib/CodeGen/RegisterCoalescer.cpp:1215
@@ +1214,3 @@
+
+ // A def of a subregister may be a use of the othe subregisters, so
+ // deleting a def of a subregister may also remove uses. Since CopyMI
----------------
typo
================
Comment at: lib/CodeGen/RegisterCoalescer.cpp:1217
@@ +1216,3 @@
+ // deleting a def of a subregister may also remove uses. Since CopyMI
+ // is still connected to the program list (but about to be erased),
+ // mark all defs of DstReg in it as <undef>, so that shrinkToUses would
----------------
Instead of "connected to the program list" use "part of the function"?
================
Comment at: test/CodeGen/Hexagon/regalloc-bad-undef.mir:166
@@ +165,3 @@
+ ADJCALLSTACKDOWN 0, implicit-def dead %r29, implicit-def dead %r30, implicit %r31, implicit %r30, implicit %r29
+ J2_call @lrand48, implicit-def dead %d0, implicit-def dead %d1, implicit-def dead %d2, implicit-def dead %d3, implicit-def dead %d4, implicit-def dead %d5, implicit-def dead %d6, implicit-def dead %d7, implicit-def dead %r28, implicit-def dead %r31, implicit-def dead %p0, implicit-def dead %p1, implicit-def dead %p2, implicit-def dead %p3, implicit-def dead %m0, implicit-def dead %m1, implicit-def dead %lc0, implicit-def dead %lc1, implicit-def dead %sa0, implicit-def dead %sa1, implicit-def dead %usr, implicit-def %usr_ovf, implicit-def dead %cs0, implicit-def dead %cs1, implicit-def dead %w0, implicit-def dead %w1, implicit-def dead %w2, implicit-def dead %w3, implicit-def dead %w4, implicit-def dead %w5, implicit-def dead %w6, implicit-def dead %w7, implicit-def dead %w8, implicit-def dead %w9, implicit-def dead %w10, implicit-def dead %w11, implicit-def dead %w12, implicit-def dead %w13, implicit-def dead %w14, implicit-def dead %w15, implicit-def dead %q0, implicit-def dead %q1, implicit-def dead %q2, implicit-def dead %q3, implicit-def %r0
+ ADJCALLSTACKUP 0, 0, implicit-def dead %r29, implicit-def dead %r30, implicit-def dead %r31, implicit %r29
----------------
completely unrelated to this patch, but this looks like a regmask operand could nicely replace dozens of implicit dead defs.
Repository:
rL LLVM
https://reviews.llvm.org/D21189
More information about the llvm-commits
mailing list