Skip to content

Commit

Permalink
add predicate for fake16 inst
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoreshen committed Jan 15, 2025
1 parent 5249824 commit 0e4c4ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/lib/Target/AMDGPU/SIInstructions.td
Original file line number Diff line number Diff line change
Expand Up @@ -3325,7 +3325,9 @@ multiclass V_SAT_PK_Pat<Instruction inst> {
let OtherPredicates = [NotHasTrue16BitInsts] in {
defm : V_SAT_PK_Pat<V_SAT_PK_U8_I16_e64>;
} // End OtherPredicates = [NotHasTrue16BitInsts]
defm : V_SAT_PK_Pat<V_SAT_PK_U8_I16_fake16_e64>;
let True16Predicate = UseFakeTrue16Insts in {
defm : V_SAT_PK_Pat<V_SAT_PK_U8_I16_fake16_e64>;
}

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

0 comments on commit 0e4c4ed

Please sign in to comment.