[all-commits] [llvm/llvm-project] c557d3: [InstCombine] Use computeKnownBits() for srem Simp...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed May 17 06:57:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c557d3109a942bc4fb93b690ceb70de8a3d53d30
      https://github.com/llvm/llvm-project/commit/c557d3109a942bc4fb93b690ceb70de8a3d53d30
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp

  Log Message:
  -----------
  [InstCombine] Use computeKnownBits() for srem SimplifyDemandedBits()

For the case of a non-constant operand, fall back to
computeKnownBits() rather than trying to reimplement logic.

Found while testing a consistency assertion for both functions.




More information about the All-commits mailing list