This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Compute `sdiv` as non-zero if `abs(num) u>= abs(denum)`
ClosedPublic

Authored by goldstein.w.n on Aug 7 2023, 10:46 AM.

Diff Detail

Event Timeline

goldstein.w.n created this revision.Aug 7 2023, 10:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 10:46 AM
goldstein.w.n requested review of this revision.Aug 7 2023, 10:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 10:46 AM
nikic accepted this revision.Aug 7 2023, 11:49 AM

LGTM

llvm/lib/Analysis/ValueTracking.cpp
2582

computing

2583

Pre existing, but this should be an early return false.

This revision is now accepted and ready to land.Aug 7 2023, 11:49 AM

Fixup comment/early return

This revision was landed with ongoing or failed builds.Aug 24 2023, 5:43 PM
This revision was automatically updated to reflect the committed changes.