[all-commits] [llvm/llvm-project] 1bd2cc: [InstCombine] Use KnownBits::udiv() helper

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed May 17 08:03:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bd2cc5f7b50e31746a21c678daa765c0f9b4c4d
      https://github.com/llvm/llvm-project/commit/1bd2cc5f7b50e31746a21c678daa765c0f9b4c4d
  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 KnownBits::udiv() helper

This produces more precise results than the ad-hoc implementation.

Noticed while trying to add a consistency assertion.




More information about the All-commits mailing list