[PATCH] D19884: Fix a bug when hoist spill to a BB with landingpad successor
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Thu May 5 14:17:59 PDT 2016
echristo added inline comments.
================
Comment at: lib/CodeGen/SplitKit.h:124-127
@@ -123,6 +123,6 @@
/// analyze - set CurLI to the specified interval, and analyze how it may be
/// split.
void analyze(const LiveInterval *li);
/// didRepairRange() - Returns true if CurLI was invalid and has been repaired
----------------
I could be missing something but analyze sets the interval and does the analysis which is then cached, but the setParent you've got doesn't do the analysis and so isn't updating aspects of SA right (the computation is happening as part of getLastSplitPointIter, but the clear and analyzeUses isn't happening)? You might not be using it, but it seems odd to leave it in an indeterminate state.
Repository:
rL LLVM
http://reviews.llvm.org/D19884
More information about the llvm-commits
mailing list