]> granicus.if.org Git - llvm/commitdiff
[AArch64] Corrected spill size for DDD register class. NFCI
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 21 Oct 2016 09:53:42 +0000 (09:53 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 21 Oct 2016 09:53:42 +0000 (09:53 +0000)
Summary:
The spill size was incorrectly set to 196 bits,
which isn't a multiple of 8. This problem was detected when
experimenting with asserts that the spill size should be a
multiple of the byte size.

New corrected value for the spill size is set to 192 bits.

Note that tablegen (RegisterInfoEmitter) will divide the
size set in the RegisterClass definition by 8. So this
change should not have any impact on the tablegen output
(trunc(192/8) == trunc(196/8) == 24 bytes).

Reviewers: t.p.northover

Subscribers: llvm-commits, aemerson, rengolin

Differential Revision: https://reviews.llvm.org/D25818

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284814 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64RegisterInfo.td

index 5fbaff00a5e71069ef0cc24deed1bcd14fcb618c..7e29ee5e9bafef5ba5a030d0941f26583bbfe945 100644 (file)
@@ -422,7 +422,7 @@ def DD   : RegisterClass<"AArch64", [untyped], 64, (add DSeqPairs)> {
   let Size = 128;
 }
 def DDD  : RegisterClass<"AArch64", [untyped], 64, (add DSeqTriples)> {
-  let Size = 196;
+  let Size = 192;
 }
 def DDDD : RegisterClass<"AArch64", [untyped], 64, (add DSeqQuads)> {
   let Size = 256;