Skip to content

Commit 0e4c4ed

Browse files
committed
add predicate for fake16 inst
1 parent 5249824 commit 0e4c4ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,9 @@ multiclass V_SAT_PK_Pat<Instruction inst> {
33253325
let OtherPredicates = [NotHasTrue16BitInsts] in {
33263326
defm : V_SAT_PK_Pat<V_SAT_PK_U8_I16_e64>;
33273327
} // End OtherPredicates = [NotHasTrue16BitInsts]
3328-
defm : V_SAT_PK_Pat<V_SAT_PK_U8_I16_fake16_e64>;
3328+
let True16Predicate = UseFakeTrue16Insts in {
3329+
defm : V_SAT_PK_Pat<V_SAT_PK_U8_I16_fake16_e64>;
3330+
}
33293331

33303332
// With multiple uses of the shift, this will duplicate the shift and
33313333
// increase register pressure.

0 commit comments

Comments
 (0)