summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-06-04 11:47:54 +0000
committerTobias Grosser <tobias@grosser.es>2014-06-04 11:47:54 +0000
commit5416a0395ff05a1b9ac4ee5b3154179a0d80e08b (patch)
tree34b66bb6e20aa483dab95d00d230f5963544c634 /llvm/lib/Target
parent3154171d2d4ace0a86382b219d2fe309a6c002f3 (diff)
downloadbcm5719-llvm-5416a0395ff05a1b9ac4ee5b3154179a0d80e08b.tar.gz
bcm5719-llvm-5416a0395ff05a1b9ac4ee5b3154179a0d80e08b.zip
Adjust multidim test cases to not access out-of-bound memory
We do this currently only for test cases where we have integer offsets that clearly access array dimensions out-of-bound. -; for (long i = 0; i < n; i++) -; for (long j = 0; j < m; j++) -; for (long k = 0; k < o; k++) +; for (long i = 0; i < n - 3; i++) +; for (long j = 4; j < m; j++) +; for (long k = 0; k < o - 7; k++) ; A[i+3][j-4][k+7] = 1.0; This will be helpful if we later want to simplify the access functions under the assumption that they do not access memory out of bounds. llvm-svn: 210179
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud