[all-commits] [llvm/llvm-project] b76c85: TargetLowering: fix an infinite DAG combine in Sim...

Jon Roelofs via All-commits all-commits at lists.llvm.org
Wed Jul 12 11:47:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b76c85b355578d9076c22a86faf4ea8de1745bdf
      https://github.com/llvm/llvm-project/commit/b76c85b355578d9076c22a86faf4ea8de1745bdf
  Author: Jon Roelofs <jonathan_roelofs at apple.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    A llvm/test/CodeGen/AArch64/arm64-setcc-swap-infloop.ll

  Log Message:
  -----------
  TargetLowering: fix an infinite DAG combine in SimplifySETCC

TargetLowering::SimplifySetCC wants to swap the operands of a SETCC to
canonicalize the constant to the RHS. The bug here was that it did so whether
or not the RHS was already a constant, leading to an infinite loop.

rdar://111847838

Differential revision: https://reviews.llvm.org/D155095




More information about the All-commits mailing list