[all-commits] [llvm/llvm-project] 03e6ef: [InstCombine] Further simplify udiv -> lshr folding
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Feb 23 06:29:39 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 03e6efb8c23f489e45353b6b6d941628d9c49ca2
https://github.com/llvm/llvm-project/commit/03e6efb8c23f489e45353b6b6d941628d9c49ca2
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Log Message:
-----------
[InstCombine] Further simplify udiv -> lshr folding
Rather than queuing up actions, have one function that does the
log2() fold in the obvious way, but with a flag that allows us
to check whether the fold will succeed without actually performing
it.
More information about the All-commits
mailing list