Revision tags: llvmorg-21-init |
|
#
c546b531 |
| 24-Jan-2025 |
DianQK <dianqk@dianqk.net> |
[ValueTracking] Pass changed predicate `SignedLPred` to `isImpliedByMatchingCmp` (#124271)
Fixes #124267.
Since we are using the new predicate, we should also update the
parameters of `isImplied
[ValueTracking] Pass changed predicate `SignedLPred` to `isImpliedByMatchingCmp` (#124271)
Fixes #124267.
Since we are using the new predicate, we should also update the
parameters of `isImpliedByMatchingCmp`.
show more ...
|
Revision tags: llvmorg-19.1.7 |
|
#
f1632d25 |
| 13-Jan-2025 |
Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> |
IR: introduce ICmpInst::isImpliedByMatchingCmp (#122597)
Create an abstraction over isImplied{True,False}ByMatchingCmp to
faithfully communicate the result of both functions, cleaning up code in
c
IR: introduce ICmpInst::isImpliedByMatchingCmp (#122597)
Create an abstraction over isImplied{True,False}ByMatchingCmp to
faithfully communicate the result of both functions, cleaning up code in
callsites. While at it, fix a bug in the implied-false version of the
function, which was inadvertedenly dropping samesign information.
show more ...
|
#
66badf22 |
| 12-Jan-2025 |
Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> |
VT: teach a special-case optz about samesign (#122590)
There is a narrow special-case in isImpliedCondICmps that can benefit
from being taught about samesign. Since it costs us nothing to implement
VT: teach a special-case optz about samesign (#122590)
There is a narrow special-case in isImpliedCondICmps that can benefit
from being taught about samesign. Since it costs us nothing to implement
it, teach it about samesign, for completeness. This patch marks the
completion of the effort to teach ValueTracking about samesign.
show more ...
|
#
f38c40bf |
| 11-Jan-2025 |
Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> |
VT: teach isImpliedCondMatchingOperands about samesign (#122474)
Move isImplied{True,False}ByMatchingCmp from CmpInst to ICmpInst, so
that it can operate on CmpPredicate instead of CmpInst::Predica
VT: teach isImpliedCondMatchingOperands about samesign (#122474)
Move isImplied{True,False}ByMatchingCmp from CmpInst to ICmpInst, so
that it can operate on CmpPredicate instead of CmpInst::Predicate, and
teach it about samesign. There are two callers of this function, and we
choose to migrate the one in ValueTracking, namely
isImpliedCondMatchingOperands to CmpPredicate, hence teaching it about
samesign, with visible test impact.
show more ...
|
#
cfee344d |
| 10-Jan-2025 |
Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> |
VT: teach implied-cond-cr about samesign (#122447)
Teach isImpliedCondCommonOperandWithCR about samesign, noting that the
only case we need to handle is when exactly one of the icmps have
samesign.
|
#
b53e7942 |
| 10-Jan-2025 |
Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> |
VT: teach isImpliedCondOperands about samesign (#120263)
isImpliedCondICmps() and its callers in ValueTracking can greatly
benefit from being taught about samesign. As a first step, teach one
call
VT: teach isImpliedCondOperands about samesign (#120263)
isImpliedCondICmps() and its callers in ValueTracking can greatly
benefit from being taught about samesign. As a first step, teach one
caller, namely isImpliedCondOperands(). Very minimal changes are
required for this, as CmpPredicate::getMatching() does most of the work.
show more ...
|
#
9d5299eb |
| 09-Jan-2025 |
Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> |
VT/test: pre-commit tests to enable samesign optz (#120257)
Pre-commit some tests in preparation to teach ValueTracking's
implied-cond about samesign.
|