[all-commits] [llvm/llvm-project] 01f4d4: Simplify `(a % b) lt/ge (b-1)` into `(a % b) eq/ne...

elhewaty via All-commits all-commits at lists.llvm.org
Tue Jan 16 01:15:27 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01f4d40aad58c5c34a8ae30edbf4e0ebbf235838
      https://github.com/llvm/llvm-project/commit/01f4d40aad58c5c34a8ae30edbf4e0ebbf235838
  Author: elhewaty <mohamedatef1698 at gmail.com>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/test/Transforms/InstCombine/icmp.ll

  Log Message:
  -----------
  Simplify `(a % b) lt/ge (b-1)` into `(a % b) eq/ne (b-1)` (#72504)

Alive2: https://alive2.llvm.org/ce/z/i7zYtE
Fixes: https://github.com/llvm/llvm-project/issues/71280




More information about the All-commits mailing list