[PATCH] D149423: [ValueTracking] Use knownbits interface for determining if `div`/`rem` are safe to speculate

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 23:23:15 PDT 2023


goldstein.w.n created this revision.
goldstein.w.n added reviewers: StephenFan, nikic, spatel.
Herald added subscribers: foad, hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This just replaces the exact constant requirements with known-bits
which can prove better results.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149423

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Analysis/ValueTracking/speculate-div.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149423.517807.patch
Type: text/x-patch
Size: 5401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/dc2ef0fb/attachment.bin>


More information about the llvm-commits mailing list