[PATCH] D16073: [SelectionDAG] Use LLVM_ENABLE_ABI_BREAKING_CHECKS to save space

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 11:04:00 PST 2016


davide created this revision.
davide added reviewers: resistor, dexonsmith.
davide added a subscriber: llvm-commits.

As recommended by Duncan's post commit review on r251209.

http://reviews.llvm.org/D16073

Files:
  include/llvm/CodeGen/SelectionDAG.h
  include/llvm/CodeGen/SelectionDAGNodes.h

Index: include/llvm/CodeGen/SelectionDAGNodes.h
===================================================================
--- include/llvm/CodeGen/SelectionDAGNodes.h
+++ include/llvm/CodeGen/SelectionDAGNodes.h
@@ -426,9 +426,11 @@
   friend struct ilist_traits<SDNode>;
 
 public:
+#ifndef LLVM_ENABLE_ABI_BREAKING_CHECKS
   /// Unique and persistent id per SDNode in the DAG.
   /// Used for debug printing.
   uint16_t PersistentId;
+#endif
 
   //===--------------------------------------------------------------------===//
   //  Accessors
Index: include/llvm/CodeGen/SelectionDAG.h
===================================================================
--- include/llvm/CodeGen/SelectionDAG.h
+++ include/llvm/CodeGen/SelectionDAG.h
@@ -215,7 +215,9 @@
   /// Tracks dbg_value information through SDISel.
   SDDbgInfo *DbgInfo;
 
+#ifndef LLVM_ENABLE_ABI_BREAKING_CHECKS
   uint16_t NextPersistentId = 0;
+#endif
 
 public:
   /// Clients of various APIs that cause global effects on


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16073.44527.patch
Type: text/x-patch
Size: 982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160111/c55f0ab8/attachment.bin>


More information about the llvm-commits mailing list