File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,9 @@ enum class SchedGroupMask {
75
75
DS_READ = 1u << 8 ,
76
76
DS_WRITE = 1u << 9 ,
77
77
TRANS = 1u << 10 ,
78
+ INLINE_ASM = 1u << 11 ,
78
79
ALL = ALU | VALU | SALU | MFMA | VMEM | VMEM_READ | VMEM_WRITE | DS |
79
- DS_READ | DS_WRITE | TRANS,
80
+ DS_READ | DS_WRITE | TRANS | INLINE_ASM ,
80
81
LLVM_MARK_AS_BITMASK_ENUM (/* LargestFlag = */ ALL)
81
82
};
82
83
@@ -2436,6 +2437,10 @@ bool SchedGroup::canAddMI(const MachineInstr &MI) const {
2436
2437
TII->isTRANS (MI))
2437
2438
Result = true ;
2438
2439
2440
+ else if (((SGMask & SchedGroupMask::INLINE_ASM) != SchedGroupMask::NONE) &&
2441
+ MI.isInlineAsm ())
2442
+ Result = true ;
2443
+
2439
2444
LLVM_DEBUG (
2440
2445
dbgs () << " For SchedGroup with mask " << format_hex ((int )SGMask, 10 , true )
2441
2446
<< (Result ? " could classify " : " unable to classify " ) << MI);
You can’t perform that action at this time.
0 commit comments