[PATCH] D44417: Fix for DAGCombiner infinite loop in AMDGPU OCLtst

Alexander via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 14 02:51:21 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL327488: [AMDGPU] Fix for DAGCombiner infinite loop in OCLtst (authored by alex-t, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D44417?vs=138149&id=138315#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D44417

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


Index: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1194,15 +1194,17 @@
   /// encoding of the volatile flag, as well as bits used by subclasses. This
   /// function should only be used to compute a FoldingSetNodeID value.
   /// The HasDebugValue bit is masked out because CSE map needs to match
-  /// nodes with debug info with nodes without debug info.
+  /// nodes with debug info with nodes without debug info. Same is about
+  /// isDivergent bit.
   unsigned getRawSubclassData() const {
     uint16_t Data;
     union {
       char RawSDNodeBits[sizeof(uint16_t)];
       SDNodeBitfields SDNodeBits;
     };
     memcpy(&RawSDNodeBits, &this->RawSDNodeBits, sizeof(this->RawSDNodeBits));
     SDNodeBits.HasDebugValue = 0;
+    SDNodeBits.IsDivergent = false;
     memcpy(&Data, &RawSDNodeBits, sizeof(RawSDNodeBits));
     return Data;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44417.138315.patch
Type: text/x-patch
Size: 1043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180314/528083cc/attachment.bin>


More information about the llvm-commits mailing list