[llvm] [GlobalISel][AArch64] Combine unmerge(G_EXT v, undef) to unmerge(v). (PR #65263)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 5 05:27:58 PDT 2023


================
@@ -1071,18 +1071,18 @@ void applyVectorSextInReg(MachineInstr &MI, MachineRegisterInfo &MRI,
 bool matchUnmergeExtToUnmerge(MachineInstr &MI, MachineRegisterInfo &MRI,
                               Register &MatchInfo) {
   assert(MI.getOpcode() == TargetOpcode::G_UNMERGE_VALUES);
----------------
aemerson wrote:

This assert becomes unnecessary once you have the `cast<GUnmerge>` below.

https://github.com/llvm/llvm-project/pull/65263


More information about the llvm-commits mailing list