[all-commits] [llvm/llvm-project] 1f5393: [InstCombine] Remove foldAndOrOfEqualityCmpsWithCo...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Apr 29 03:23:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f53932a95f16f53980af40d092901ff3480e00c
https://github.com/llvm/llvm-project/commit/1f53932a95f16f53980af40d092901ff3480e00c
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-04-29 (Fri, 29 Apr 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/test/Transforms/InstCombine/and-or-icmps.ll
Log Message:
-----------
[InstCombine] Remove foldAndOrOfEqualityCmpsWithConstants() fold
This fold handles a special subset of foldAndOrOfICmpsUsingRanges(),
use the more generic implementation instead.
The result can differ if a representation using a range comparison
is possible, in which case that is preferred over masking. There is
a canonicalization opportunity here.
More information about the All-commits
mailing list