Add subclass data to the FoldingSetNode for MemIntrinsicSDNodes.
authorSean Fertile <sfertile@ca.ibm.com>
Fri, 27 Oct 2017 04:02:51 +0000 (04:02 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Fri, 27 Oct 2017 04:02:51 +0000 (04:02 +0000)
commit57d46b843687b61758ae4dc7045df5dced61e937
tree1c199d822957e2b1b21c659abd2acca2825448c6
parent79048e4c5cd36573c172875e48a5848a5f855403
Add subclass data to the FoldingSetNode for MemIntrinsicSDNodes.

Not having the subclass data on an MemIntrinsicSDNodes means it was possible
to try to fold 2 nodes with the same operands but differing MMO flags. This
would trip an assertion when trying to refine the alignment between the 2
MachineMemOperands.

Differential Revision: https://reviews.llvm.org/D38898

llvm-svn: 316737
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/PowerPC/MMO-flags-assertion.ll [new file with mode: 0644]