[all-commits] [llvm/llvm-project] a1a9c5: [GlobalISel] Fix infinite loop in reassociation co...

Jay Foad via All-commits all-commits at lists.llvm.org
Sun Jul 16 06:17:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1a9c53ae7f13ecfec588bc17bcbb75a7c9c3c16
      https://github.com/llvm/llvm-project/commit/a1a9c53ae7f13ecfec588bc17bcbb75a7c9c3c16
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2023-07-16 (Sun, 16 Jul 2023)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    A llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizer-combiner-reassoc.mir

  Log Message:
  -----------
  [GlobalISel] Fix infinite loop in reassociation combine

Don't reassociate (C1+C2)+Y -> C1+(C2+Y).

Fixes https://github.com/llvm/llvm-project/issues/63849

Differential Revision: https://reviews.llvm.org/D155284




More information about the All-commits mailing list