[all-commits] [llvm/llvm-project] 2824bd: [GlobalISel] Fix and(load)->zextload combine crash.

Amara Emerson via All-commits all-commits at lists.llvm.org
Wed Jul 13 14:58:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2824bdd92f3b5422e72078dcc8a7a7005ec67605
      https://github.com/llvm/llvm-project/commit/2824bdd92f3b5422e72078dcc8a7a7005ec67605
  Author: Amara Emerson <amara at apple.com>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/prelegalizer-combiner-load-and-mask.mir

  Log Message:
  -----------
  [GlobalISel] Fix and(load)->zextload combine crash.

We shouldn't use getOpcodeDef() if we need to guarantee the def has only one
user since under the hood it may look through copies and optimization hints,
which themselves may have multiple users.




More information about the All-commits mailing list