[PATCH] D27338: [globalisel] Tablegen-erate current Register Bank Information

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 16:58:03 PST 2017


qcolombet added a comment.

LGTM.



================
Comment at: lib/Target/AArch64/AArch64GenRegisterBankInfo.def:89
+    {nullptr, 1},
+    {nullptr, 1},
+    // 21: GPR 32-bit value to FPR 32-bit value. <-- This must match
----------------
dsanders wrote:
> qcolombet wrote:
> > Why do we need three of them instead of none previously?
> > 
> > At the very least I would have expected that we need just one of this input.
> We should have had the three of them at the end of the table but got away without them because FPR was last and the missing elements weren't accessed. Now that FPR is first we need them to pad GPR's mappings out to the right indices.
> 
> I've added comments indicating the invalid mappings they correspond to.
Can't we update the indices or formulae so that we don't need those invalid entries at all?
If that's too complicated, I am fine with moving along with the current version. It will be table generated as some point any way.


https://reviews.llvm.org/D27338





More information about the llvm-commits mailing list