Fixing a heisenbug where the memory dependence analysis behaves differently
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Thu, 14 Nov 2013 01:10:52 +0000 (01:10 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Thu, 14 Nov 2013 01:10:52 +0000 (01:10 +0000)
commit2999b2f2ccc3a48c834dffe19bb39c67641a3afd
treea1dca4257afb43c75f8395a68d4a6c1efc739149
parent4e7c22a90b28828e4a28751b65ae24091f7df4ec
Fixing a heisenbug where the memory dependence analysis behaves differently
with and without -g.

Adding a test case to make sure that the threshold used in the memory
dependence analysis is respected. The test case also checks that debug
intrinsics are not counted towards this threshold.

Differential Revision: http://llvm-reviews.chandlerc.com/D2141

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194646 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp
test/Transforms/DeadStoreElimination/inst-limits.ll [new file with mode: 0644]