[all-commits] [llvm/llvm-project] 094cce: Reapply [Dominators] Add findNearestCommonDominato...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Jan 10 03:20:15 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 094ccee2c89e9fa12a3439f5561f9472f98654e5
https://github.com/llvm/llvm-project/commit/094ccee2c89e9fa12a3439f5561f9472f98654e5
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-01-10 (Tue, 10 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:
-----------
Reapply [Dominators] Add findNearestCommonDominator() for Instructions (NFC)
Reapply with checks for instructions in unreachable blocks. A test
case for this was added in 1ee4a93b15bb.
-----
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