[all-commits] [llvm/llvm-project] b7bd3a: [CGP] Fix infinite loop in icmp operand swapping

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jun 16 06:50:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7bd3a734c7c08e1a703a4f23e3e854ba94a1bf2
      https://github.com/llvm/llvm-project/commit/b7bd3a734c7c08e1a703a4f23e3e854ba94a1bf2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-06-16 (Fri, 16 Jun 2023)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    A llvm/test/Transforms/CodeGenPrepare/X86/icmp-swap-loop.ll

  Log Message:
  -----------
  [CGP] Fix infinite loop in icmp operand swapping

Don't swap the operands if they're the same. Fixes the issue reported
at https://reviews.llvm.org/D152541#4427017.




More information about the All-commits mailing list