Skip DBG_VALUE and DBG_LABEL in branch folding algorithms.
The bug is reported in https://bugs.chromium.org/p/chromium/issues/detail?id=898160.
Paths
| Differential D54199
[CodeGen] Fix bugs in BranchFolderPass when debug labels are generated. ClosedPublic Authored by HsiangKai on Nov 6 2018, 11:54 PM.
Details Summary Skip DBG_VALUE and DBG_LABEL in branch folding algorithms. The bug is reported in https://bugs.chromium.org/p/chromium/issues/detail?id=898160.
Diff Detail
Event Timeline
HsiangKai added inline comments.
This revision is now accepted and ready to land.Nov 29 2018, 9:54 AM Closed by commit rL347964: [CodeGen] Fix bugs in BranchFolderPass when debug labels are generated. (authored by HsiangKai). · Explain WhyNov 30 2018, 12:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 172901 lib/CodeGen/BranchFolding.cpp
test/CodeGen/MIR/X86/branch-folder-with-label.mir
|
There is MachineInstr::isMetaInstruction(). Could you please remove this helper function and use that instead?