[PATCH] D125264: [ConstraintElimination] Simplify ssub(a, b) if a s>b && a s>=0.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 9 12:53:11 PDT 2022


fhahn created this revision.
fhahn added reviewers: fcloutier, rapidsna, spatel, nikic, reames.
Herald added a subscriber: hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

A first patch to use the reasoning in ConstraintElimination to simplify
sub with overflow to a regular sub, if the operation is guaranteed to
not overflow.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125264

Files:
  llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
  llvm/test/Transforms/ConstraintElimination/ssub-with-overflow.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125264.428176.patch
Type: text/x-patch
Size: 4294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220509/109ba8b5/attachment.bin>


More information about the llvm-commits mailing list