aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2017-12-30 05:54:22 +0000
committerPhilip Reames <listmail@philipreames.com>2017-12-30 05:54:22 +0000
commite499bc3042eb43b37207ef1ef1f1a491e1c37bdd (patch)
tree99e8972034c1cac83d6e62323c35208643680edb /llvm/unittests/Support/CommandLineTest.cpp
parent2ab8c15cf1ffa814fe79f9d0cffc7290c0db77dd (diff)
downloadllvm-e499bc3042eb43b37207ef1ef1f1a491e1c37bdd.zip
llvm-e499bc3042eb43b37207ef1ef1f1a491e1c37bdd.tar.gz
llvm-e499bc3042eb43b37207ef1ef1f1a491e1c37bdd.tar.bz2
[instsimplify] consistently handle undef and out of bound indices for insertelement and extractelement
In one case, we were handling out of bounds, but not undef indices. In the other, we were handling undef (with the comment making the analogy to out of bounds), but not out of bounds. Be consistent and treat both undef and constant out of bounds indices as producing undefined results. As a side effect, this also protects instcombine from having to handle large constant indices as we always simplify first. llvm-svn: 321575
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions