1. [BranchFolding] skip debug instr to avoid code change (details)
Commit ec32dff0b075055b30140c543e9f2bef608adc14 by jeremy.morse
[BranchFolding] skip debug instr to avoid code change
Use the existing helper function in BranchFolding,
"countsAsInstruction", to skip over non-instructions. Otherwise debug
instructions can be identified as the last real instruction in a block,
leading to different codegen decisions when debug is enabled as
demonstrated by the test case.
Patch by: yechunliang (Chris Ye)!
Differential Revision:
The file was addedllvm/test/CodeGen/MIR/X86/branch-folder-with-debug.mir
The file was modifiedllvm/lib/CodeGen/BranchFolding.cpp