llvm-project/llvm/test/Transforms/Scalarizer
Juneyoung Lee db7a2f347f Precommit transform tests that have poison as insertelement's placeholder
This commit copies existing tests at llvm/Transforms and replaces
'insertelement undef' in those files with 'insertelement poison'.
(see https://reviews.llvm.org/D93586)

Tests listed using this script:

grep -R -E '^[^;]*insertelement <.*> undef,' . | cut -d":" -f1 | uniq |
wc -l

Tests updated:

file_org=llvm/test/Transforms/$1
file=${file_org%.ll}-inseltpoison.ll
cp $file_org $file
sed -i -E 's/^([^;]*)insertelement <(.*)> undef/\1insertelement <\2> poison/g' $file
head -1 $file | grep "Assertions have been autogenerated by utils/update_test_checks.py" -q
if [ "$?" == 1 ]; then
  echo "$file : should be manually updated"
  # I manually updated the script
  exit 1
fi
python3 ./llvm/utils/update_test_checks.py --opt-binary=./build-releaseassert/bin/opt $file
2020-12-24 11:46:17 +09:00
..
basic-inseltpoison.ll Precommit transform tests that have poison as insertelement's placeholder 2020-12-24 11:46:17 +09:00
basic.ll [Scalarizer] Avoid updating the name of globals 2020-08-24 21:55:03 +02:00
cache-bug.ll
constant-extractelement.ll [Scalarizer] ExtractElement handling w/ constant extract index 2020-07-06 13:19:32 +03:00
constant-insertelement.ll [Scalarizer] InsertElement handling w/ constant insert index 2020-07-06 13:19:32 +03:00
crash-bug.ll [Scalarizer] When gathering scattered scalar, don't replace it with itself 2020-07-07 17:03:53 +03:00
dbginfo.ll
dbgloc-bug-inseltpoison.ll Precommit transform tests that have poison as insertelement's placeholder 2020-12-24 11:46:17 +09:00
dbgloc-bug.ll
global-bug-2.ll [Scalarizer] Avoid changing name of non-instructions 2020-09-15 14:15:50 +02:00
global-bug.ll [Scalarizer] Avoid updating the name of globals 2020-08-24 21:55:03 +02:00
intrinsics.ll
order-bug-inseltpoison.ll Precommit transform tests that have poison as insertelement's placeholder 2020-12-24 11:46:17 +09:00
order-bug.ll
phi-bug.ll
phi-unreachable-pred.ll [Scalarizer] Centralize instruction DCE 2020-07-07 01:12:51 +03:00
scatter-order.ll
store-bug.ll
variable-extractelement.ll [Scalarizer] Remove unused check-prefixes 2020-11-09 10:37:17 +00:00
variable-insertelement.ll [Scalarizer] Remove unused check-prefixes 2020-11-09 10:37:17 +00:00
vector-gep.ll