Commit 504d23a
committed
[SelectionDAG] Make the FoldingSet profile in getAtomic match AddNodeIDCustom.
The code in AddNodeIDCustom:
const AtomicSDNode *AT = cast<AtomicSDNode>(N);
ID.AddInteger(AT->getMemoryVT().getRawBits());
ID.AddInteger(AT->getRawSubclassData());
ID.AddInteger(AT->getPointerInfo().getAddrSpace());
ID.AddInteger(AT->getMemOperand()->getFlags());
In theory, the mismatch would have made CSE of AtomicSDNodes not
work, but I don't know how to test it.1 parent a1db2c6 commit 504d23a
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8994 | 8994 | | |
8995 | 8995 | | |
8996 | 8996 | | |
8997 | | - | |
8998 | 8997 | | |
| 8998 | + | |
| 8999 | + | |
| 9000 | + | |
8999 | 9001 | | |
9000 | 9002 | | |
9001 | 9003 | | |
| |||
0 commit comments