[PATCH] D70597: [PHIEliminate] skip dbg instruction when LowerPHINode
Chris Ye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 06:20:35 PST 2019
yechunliang added a comment.
After study the history of the PHIElimination code changes, finally, I found this issue had been fixed before, and later the fixing code had been removed when created the SkipPHIsAndLables as new helper.
1. First patch to fix this issue in SkipPHIsAndLabels from PHIElimination.h (using workaround).
https://github.com/llvm/llvm-project/commit/d7eb69364
2. SkipPHIsAndLables had been created as new helper in MachineBasicBlock.cpp ( the fixing code have been removed)
https://github.com/llvm/llvm-project/commit/ef54185724
3. later the function SkipPHIsAndLables from PHIElimination.h have been deleted.
https://github.com/llvm/llvm-project/commit/fbd47dcc5
So the issue happen again. Moving dbg_values after labels at the beginning should be a better solution, and moving dbg_values after labels should have no side effect.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70597/new/
https://reviews.llvm.org/D70597
More information about the llvm-commits
mailing list