[PATCH] D27782: [codegen] Add generic functions to skip debug values.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 15:36:23 PST 2016


fhahn created this revision.
fhahn added reviewers: iteratee, aprantl, eli.friedman.
fhahn added a subscriber: llvm-commits.
Herald added a subscriber: MatzeB.

This commits moves skipDebugInstructionsForward and
skipDebugInstructionsBackward from lib/CodeGen/IfConversion.cpp
to include/llvm/CodeGen/MachineBasicBlock.h and updates
some codgen files to use them.

This refactoring was suggested in https://reviews.llvm.org/D27688
and I thought it's best to do the refactoring in a separate
review, but I could also put both changes in a single review
if that's preferred.

Also, the names for the functions aren't the snappiest and
I would be happy to rename them if anybody has suggestions.


https://reviews.llvm.org/D27782

Files:
  include/llvm/CodeGen/MachineBasicBlock.h
  lib/CodeGen/BranchFolding.cpp
  lib/CodeGen/IfConversion.cpp
  lib/CodeGen/MachineBasicBlock.cpp
  lib/CodeGen/MachineCSE.cpp
  lib/CodeGen/RegisterPressure.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27782.81490.patch
Type: text/x-patch
Size: 7773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161214/86a15398/attachment.bin>


More information about the llvm-commits mailing list