[PATCH] D116968: [IRBuilder] Migrate add-folding to value-based FoldAdd.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 10 12:51:32 PST 2022
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/include/llvm/Analysis/InstSimplifyFolder.h:52
+ bool HasNSW = false) const override {
+ return SimplifyAddInst(LHS, RHS, HasNUW, HasNSW, SimplifyQuery(DL));
+ }
----------------
Might make sense to store the SimplifyQuery in the class?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116968/new/
https://reviews.llvm.org/D116968
More information about the llvm-commits
mailing list