-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[X86] Check for AMXTile in asserting #136507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-backend-x86 Author: AZero13 (AZero13) ChangesCheck for hasAMXTILE before operating, else return false. Full diff: https://github.com/llvm/llvm-project/pull/136507.diff 1 Files Affected:
diff --git a/llvm/lib/Target/X86/X86LowerTileCopy.cpp b/llvm/lib/Target/X86/X86LowerTileCopy.cpp
index fe13ebc6c7675..f4949c52f03ca 100644
--- a/llvm/lib/Target/X86/X86LowerTileCopy.cpp
+++ b/llvm/lib/Target/X86/X86LowerTileCopy.cpp
@@ -75,6 +75,8 @@ bool X86LowerTileCopy::runOnMachineFunction(MachineFunction &MF) {
return false;
const X86Subtarget &ST = MF.getSubtarget<X86Subtarget>();
+ if (!ST.hasAMXTILE())
+ return false;
const X86InstrInfo *TII = ST.getInstrInfo();
const TargetRegisterInfo *TRI = ST.getRegisterInfo();
BitVector GR64Regs =
|
Alright. |
Assert if hasAMXTILE is false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@phoebewang I do not have merge permissions |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/18077 Here is the relevant piece of the build log for the reference
|
Assert if hasAMXTILE is false.
Assert if hasAMXTILE is false.
Assert if hasAMXTILE is false.
Assert if hasAMXTILE is false.
Assert if hasAMXTILE is false.