[all-commits] [llvm/llvm-project] ec32df: [BranchFolding] skip debug instr to avoid code change
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Tue Oct 29 04:46:18 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ec32dff0b075055b30140c543e9f2bef608adc14
https://github.com/llvm/llvm-project/commit/ec32dff0b075055b30140c543e9f2bef608adc14
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2019-10-29 (Tue, 29 Oct 2019)
Changed paths:
M llvm/lib/CodeGen/BranchFolding.cpp
A llvm/test/CodeGen/MIR/X86/branch-folder-with-debug.mir
Log Message:
-----------
[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
More information about the All-commits
mailing list