[all-commits] [llvm/llvm-project] d6e7c1: [NFC][GuardUtils] Add util to extract widenable co...
Aleksandr Popov via All-commits
all-commits at lists.llvm.org
Fri Aug 18 08:38:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d6e7c162e1df3736d8e2b3610a831b7cfa5be99b
https://github.com/llvm/llvm-project/commit/d6e7c162e1df3736d8e2b3610a831b7cfa5be99b
Author: Aleksandr Popov <a.popov.tmb at gmail.com>
Date: 2023-08-18 (Fri, 18 Aug 2023)
Changed paths:
M llvm/include/llvm/Analysis/GuardUtils.h
M llvm/lib/Analysis/GuardUtils.cpp
M llvm/lib/Transforms/Scalar/GuardWidening.cpp
M llvm/lib/Transforms/Scalar/LoopPredication.cpp
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Log Message:
-----------
[NFC][GuardUtils] Add util to extract widenable conditions
This is the next preparation patch to support widenable conditions
widening instead of branches widening.
We've added parseWidenableGuard util which parses guard condition and
collects all checks existing in the expression tree: D157276
Here we are adding util which walks similar way through the expression
tree but looks up for widenable condition without collecting the checks.
Therefore llvm::extractWidenableCondition could parse widenable branches
with arbitrary position of widenable condition in the expression tree.
llvm::parseWidenableBranch which is we are going to get rid of is being
replaced by llvm::extractWidenableCondition where it's possible.
Reviewed By: anna
Differential Revision: https://reviews.llvm.org/D157529
More information about the All-commits
mailing list