[all-commits] [llvm/llvm-project] d58bd2: [GlobalISel] Look between instructions to be match...

chuongg3 via All-commits all-commits at lists.llvm.org
Tue Aug 27 08:57:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d58bd21150914b4a2304c24b04a714bfb251c594
      https://github.com/llvm/llvm-project/commit/d58bd21150914b4a2304c24b04a714bfb251c594
  Author: chuongg3 <chuong.goh at arm.com>
  Date:   2024-08-27 (Tue, 27 Aug 2024)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/GIMatchTableExecutor.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/select-load.mir
    M llvm/test/CodeGen/AArch64/arm64-indexed-vector-ldst.ll
    M llvm/test/CodeGen/AArch64/arm64-ld1.ll

  Log Message:
  -----------
  [GlobalISel] Look between instructions to be matched (#101675)

When a pattern is matched in TableGen, a check is run called
isObviouslySafeToFold(). One of the condition that it checks for is
whether the instructions that are being matched are consecutive, so the
instruction's insertion point does not change.

This patch allows the movement of the insertion point of a load
instruction if none of the intervening instructions are stores or have
side-effects.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list