[all-commits] [llvm/llvm-project] 0ecbb6: TableGen/GlobalISel: Make address space/align pred...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Fri Apr 22 12:48:19 PDT 2022
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2022-04-22 (Fri, 22 Apr 2022)
TableGen/GlobalISel: Make address space/align predicates consistent
The builtin predicate handling has a strange behavior where the code
assumes that a PatFrag is a stack of PatFrags, and each level adds at
most one predicate. I don't think this particularly makes sense,
especially without a diagnostic to ensure you aren't trying to set
multiple at once.
This wasn't followed for address spaces and alignment, which could
potentially fall through to report no builtin predicate was
added. Just switch these to follow the existing convention for now.
More information about the All-commits