[PATCH] D137848: [ConstraintElimination] Add Decomposition class (NFCI)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 08:30:21 PST 2022


nikic created this revision.
nikic added a reviewer: fhahn.
Herald added a subscriber: hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Replace the vector of DecompEntry with a class that stores the constant offset separately. I think this is cleaner than giving the first element special handling.

This probably also fixes some potential ubsan errors by more consistently using addWithOverflow/multiplyWithOverflow.

Depends on D137847 <https://reviews.llvm.org/D137847>.


https://reviews.llvm.org/D137848

Files:
  llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137848.474776.patch
Type: text/x-patch
Size: 9535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221111/b7d82fc8/attachment.bin>


More information about the llvm-commits mailing list