[all-commits] [llvm/llvm-project] 88da59: [IRCE][NFCI] Refactor parseRangeCheckICmp
Max Kazantsev via All-commits
all-commits at lists.llvm.org
Fri Apr 21 03:33:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 88da59682004f2649732be9dbe38340ef68058a5
https://github.com/llvm/llvm-project/commit/88da59682004f2649732be9dbe38340ef68058a5
Author: Max Kazantsev <mkazantsev at azul.com>
Date: 2023-04-21 (Fri, 21 Apr 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
Log Message:
-----------
[IRCE][NFCI] Refactor parseRangeCheckICmp
Simplify parseRangeCheckICmp:
- If RHS is loop-variant, swap LHS/RHS and swap predicate
- all checks are either IV >(=) const or IV <(=) RHS (maybe not const)
Patch by Aleksandr Popov!
Differential Revision: https://reviews.llvm.org/D148720
More information about the All-commits
mailing list