[all-commits] [llvm/llvm-project] 4ca30d: [InstCombine] Use KnownBits::urem() helper
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed May 17 08:15:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4ca30ded4f07b192b8a8bed069400f9d6b85a792
https://github.com/llvm/llvm-project/commit/4ca30ded4f07b192b8a8bed069400f9d6b85a792
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::urem() helper
This provides more precise results than the ad-hoc implementation.
Noticed while trying to add a consistency assertion.
To be honest I'm not sure why this code exists at all -- the
recursive calls are done with all bits demanded, so this should
be equivalent to just using the default case.
More information about the All-commits
mailing list