[all-commits] [llvm/llvm-project] 4a074f: [InstCombine] Extend Phi-Icmp use to include or (#...
bipmis via All-commits
all-commits at lists.llvm.org
Tue Oct 24 05:08:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a074f32a6914f2a8d7215d78758c24942dddc3d
https://github.com/llvm/llvm-project/commit/4a074f32a6914f2a8d7215d78758c24942dddc3d
Author: bipmis <102525366+bipmis at users.noreply.github.com>
Date: 2023-10-24 (Tue, 24 Oct 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
M llvm/test/Transforms/InstCombine/phi.ll
Log Message:
-----------
[InstCombine] Extend Phi-Icmp use to include or (#67682)
In InstCombinePHI currently the only use of PHI as an Icmp is being
checked as a requirement to reduce a value if isKnownNonZero.
However this can be extended to include or(icmp) . This is always true
as OR only adds bits and we are checking against 0.
More information about the All-commits
mailing list