[llvm] [PHIElimination] Handle subranges in LiveInterval updates (PR #69429)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 22:07:31 PDT 2023
================
@@ -136,6 +136,7 @@ INITIALIZE_PASS_END(PHIElimination, DEBUG_TYPE,
void PHIElimination::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addUsedIfAvailable<LiveVariables>();
+ AU.addUsedIfAvailable<LiveIntervals>();
----------------
perlfu wrote:
It seemed to me that if we use an analysis then we should declare that usage.
But I accept your logic and it doesn't make a different in practice here.
https://github.com/llvm/llvm-project/pull/69429
More information about the llvm-commits
mailing list