[PATCH] D51923: [NFC] Add validation to Ordered Instructions

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 11 03:56:00 PDT 2018


mkazantsev created this revision.
mkazantsev added reviewers: trentxintong, fhahn, bruno.

One more measure to prevent potential problems with dangling pointers.
This patch adds validation methods in debug mode to OrderedInstructions
and OrderedBasicBlock to make sure that we are not dealing with dangling
pointers and other data inconsistencies while working with them.

The validation is called from InstructionPrecedenceTracking whenever it
makes its own validation.


https://reviews.llvm.org/D51923

Files:
  include/llvm/Analysis/OrderedBasicBlock.h
  include/llvm/Analysis/OrderedInstructions.h
  lib/Analysis/InstructionPrecedenceTracking.cpp
  lib/Analysis/OrderedBasicBlock.cpp
  lib/Analysis/OrderedInstructions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51923.164843.patch
Type: text/x-patch
Size: 3779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180911/27015c93/attachment.bin>


More information about the llvm-commits mailing list