[all-commits] [llvm/llvm-project] 48585c: InstCombine: Avoid counting uses of constants (#13...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Apr 23 01:52:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 48585caf727004678617dc34fa50383c3f4eb2de
https://github.com/llvm/llvm-project/commit/48585caf727004678617dc34fa50383c3f4eb2de
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-04-23 (Wed, 23 Apr 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/icmp.ll
Log Message:
-----------
InstCombine: Avoid counting uses of constants (#136566)
Logically it does not matter; getFreelyInvertedImpl doesn't
depend on the value for the m_ImmConstant case.
This use count logic should probably sink into getFreelyInvertedImpl,
every use of this appears to just be a hasOneUse or hasNUse count,
so this could change to just be a use count threshold.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list