Skip to content

Commit 8b56fb7

Browse files
authored
[X86] Check for AMXTile in asserting (#136507)
Assert if hasAMXTILE is false.
1 parent e4d9be3 commit 8b56fb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/X86/X86LowerTileCopy.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ bool X86LowerTileCopy::runOnMachineFunction(MachineFunction &MF) {
7575
return false;
7676

7777
const X86Subtarget &ST = MF.getSubtarget<X86Subtarget>();
78+
assert(ST.hasAMXTILE() && "Only supported on AMXTILE targets");
79+
7880
const X86InstrInfo *TII = ST.getInstrInfo();
7981
const TargetRegisterInfo *TRI = ST.getRegisterInfo();
8082
BitVector GR64Regs =

0 commit comments

Comments
 (0)