[PATCH] D157458: [X86][AMX] Fix virtual register traversing in case of GlobalIsel
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 9 06:45:18 PDT 2023
pengfei added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/MachineRegisterInfo.h:675
/// 2. The machine function has not completely been through the
- /// instruction selection process.
+ /// instruction selection process or selected using GlobalISel.
/// None of this condition is possible without GlobalISel for now.
----------------
Is GlobalISel also a instruction selection process?
================
Comment at: llvm/include/llvm/CodeGen/MachineRegisterInfo.h:677
/// None of this condition is possible without GlobalISel for now.
- /// In other words, if GlobalISel is not used or if the query happens after
+ /// In other words, if GlobalISel is not used and if the query happens after
/// the select pass, using getRegClass is safe.
----------------
My understanding the `or` is correct, it looks to me like `if (!GlobalISel || AfterISel)`
================
Comment at: llvm/test/CodeGen/X86/AMX/amx-fastpreconfig-gisel.mir:4
+
+# GlobalIsel doesn't use all virtual registers and there may be virtual
+# registers without class.
----------------
How can I check it's GlobalIsel MIR? I didn't find anything special in the test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157458/new/
https://reviews.llvm.org/D157458
More information about the llvm-commits
mailing list