[all-commits] [llvm/llvm-project] 7f0de9: [Dominator] Add findNearestCommonDominator() for I...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Jan 6 08:06:42 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7f0de9573f758f5f9108795850337a5acbd17eef
https://github.com/llvm/llvm-project/commit/7f0de9573f758f5f9108795850337a5acbd17eef
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M llvm/include/llvm/IR/Dominators.h
M llvm/lib/Analysis/CaptureTracking.cpp
M llvm/lib/IR/Dominators.cpp
M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
M llvm/lib/Transforms/Scalar/TLSVariableHoist.cpp
M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
Log Message:
-----------
[Dominator] Add findNearestCommonDominator() for Instructions (NFC)
This is a recurring pattern: We want to find the nearest common
dominator (instruction) for two instructions, but currently only
provide an API for the nearest common dominator of two basic blocks.
Add an overload that accepts and return instructions.
More information about the All-commits
mailing list