[all-commits] [llvm/llvm-project] 4bc643: [GlobalISel] Fix an assertion failure in matchHois...

Amara Emerson via All-commits all-commits at lists.llvm.org
Sun Feb 26 16:06:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bc6434624222a846115f3bed826c75e5d0bb613
      https://github.com/llvm/llvm-project/commit/4bc6434624222a846115f3bed826c75e5d0bb613
  Author: Amara Emerson <amara at apple.com>
  Date:   2023-02-26 (Sun, 26 Feb 2023)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-combiner-sameopcode-hands-crash.mir

  Log Message:
  -----------
  [GlobalISel] Fix an assertion failure in matchHoistLogicOpWithSameOpcodeHands().

We use this combine in the AArch64 postlegalizer combiner, which causes this
function to query the legalizer rules for the action for an invalid opcode/type
combination (G_AND and p0). Moving the legalizer query until after the validity
check in matchHoistLogicOpWithSameOpcodeHands() fixes this.




More information about the All-commits mailing list