Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions llvm/lib/Target/AIE/AIECombine.td
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,18 @@ def combine_trunc_load : GICombineRule<
[{ return matchNarrowTruncLoad(*${root}, MRI, Helper, Observer, ${matchinfo}); }]),
(apply [{ Helper.applyBuildFnNoErase(*${root}, ${matchinfo}); }])>;

def combine_unaligned_extract_load : GICombineRule<
(defs root:$root, build_fn_matchinfo:$matchinfo),
(match (wip_match_opcode G_EXTRACT_VECTOR_ELT, G_AIE_ZEXT_EXTRACT_VECTOR_ELT, G_AIE_SEXT_EXTRACT_VECTOR_ELT): $root,
[{ return matchUnalignedExtractLoad(*${root}, MRI, Observer, ${matchinfo}); }]),
(apply [{ Helper.applyBuildFnNoErase(*${root}, ${matchinfo}); }])>;

def combine_unaligned_vector_load : GICombineRule<
(defs root:$root, build_fn_matchinfo:$matchinfo),
(match (wip_match_opcode G_LOAD): $root,
[{ return matchUnalignedVectorLoad(*${root}, MRI, Observer, ${matchinfo}); }]),
(apply [{ Helper.applyBuildFn(*${root}, ${matchinfo}); }])>;

// AIE-specifc combines (currently shared by AIE2 and AIE2P).
def aie_additional_combines : GICombineGroup<[
combine_unpad_vector,
Expand All @@ -274,7 +286,9 @@ def aie_additional_combines : GICombineGroup<[
combine_align_memset,
combine_peel_memset,
combine_pack_stores_into_memset,
combine_trunc_load
combine_trunc_load,
combine_unaligned_extract_load,
combine_unaligned_vector_load
]>;

// AIE2P-specific combines.
Expand Down Expand Up @@ -408,4 +422,3 @@ def AIE2PPostLegalizerCustomCombiner
combine_add_vector_elt_undef,
]> {
}

Loading
Loading