[all-commits] [llvm/llvm-project] a4635e: [ConstraintElim] Support `add nsw` for unsigned pr...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sun Oct 16 12:25:41 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a4635ec7108c57adc248d203a39e809918a9d028
https://github.com/llvm/llvm-project/commit/a4635ec7108c57adc248d203a39e809918a9d028
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-10-16 (Sun, 16 Oct 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
M llvm/test/Transforms/ConstraintElimination/add-nsw.ll
Log Message:
-----------
[ConstraintElim] Support `add nsw` for unsigned preds with positive ops.
If both operands of an `add nsw` are known positive, it can be treated
the same as `add nuw` and added to the unsigned system.
https://alive2.llvm.org/ce/z/6gprff
More information about the All-commits
mailing list