summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LowerSwitch
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2014-12-15 22:50:15 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2014-12-15 22:50:15 +0000
commit4555b6d870db7b4d5b68cc8fc7f12d0d6e3769af (patch)
tree924de6d9f014c8c4d58c14bb8c4c9103746033fe /llvm/test/Transforms/LowerSwitch
parentdad56868819e04c1cf4de361d0f9811d4f41559a (diff)
downloadbcm5719-llvm-4555b6d870db7b4d5b68cc8fc7f12d0d6e3769af.tar.gz
bcm5719-llvm-4555b6d870db7b4d5b68cc8fc7f12d0d6e3769af.zip
Teach ScalarEvolution to exploit min and max expressions when proving
isKnownPredicate. The motivation for this change is to optimize away checks in loops like this: limit = min(t, len) for (i = 0 to limit) if (i >= len || i < 0) throw_array_of_of_bounds(); a[i] = ... Differential Revision: http://reviews.llvm.org/D6635 llvm-svn: 224285
Diffstat (limited to 'llvm/test/Transforms/LowerSwitch')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud