summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-20 11:25:00 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-20 11:25:00 +0000
commit7c601ded3452ec7c9dbdba092dd2cf93b49270e5 (patch)
tree0457fad5028a2c0467c4977bf6b6bc810140983e /llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h
parent2cf9b135d4dd2cf63ab9230bc7b1fea5d81d6192 (diff)
downloadbcm5719-llvm-7c601ded3452ec7c9dbdba092dd2cf93b49270e5.tar.gz
bcm5719-llvm-7c601ded3452ec7c9dbdba092dd2cf93b49270e5.zip
On X86, MEMBARRIER, MFENCE, SFENCE, LFENCE are not target memory intrinsics,
so don't claim they are. They are allocated using DAG.getNode, so attempts to access MemSDNode fields results in reading off the end of the allocated memory. This fixes crashes with "llc -debug" due to debug code trying to print MemSDNode fields for these barrier nodes (since the crashes are not deterministic, use valgrind to see this). Add some nasty checking to try to catch this kind of thing in the future. llvm-svn: 119901
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SDNodeOrdering.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud