aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2019-10-29 11:38:20 +0000
committerJeremy Morse <jeremy.morse@sony.com>2019-10-29 11:45:38 +0000
commitec32dff0b075055b30140c543e9f2bef608adc14 (patch)
treef3a953d6c5dc7bd52bf05e2ba5c1812f94ff01d8 /llvm/lib/CodeGen/LiveDebugValues.cpp
parentdc63d6175aa5692db1670dc9ee7a1f304e752d87 (diff)
downloadllvm-ec32dff0b075055b30140c543e9f2bef608adc14.zip
llvm-ec32dff0b075055b30140c543e9f2bef608adc14.tar.gz
llvm-ec32dff0b075055b30140c543e9f2bef608adc14.tar.bz2
[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: https://reviews.llvm.org/D66467
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions