llvm-project/llvm/test/Transforms/InstSimplify/ConstProp
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
..
AMDGPU [AMDGPU] Add new llvm.amdgcn.fma.legacy intrinsic 2020-10-16 17:10:21 +01:00
ARM
WebAssembly
2002-03-11-ConstPropCrash.ll
2002-05-03-DivideByZeroException.ll
2002-05-03-NotOperator.ll
2002-09-03-SetCC-Bools.ll [DIE] Remove DeadInstEliminationPass 2020-09-21 12:12:25 -07:00
2003-05-12-DivideError.ll
2005-01-28-SetCCGEP.ll
2006-11-30-vector-cast.ll
2006-12-01-TruncBoolBug.ll
2006-12-01-bool-casts.ll
2007-02-05-BitCast.ll
2007-02-23-sdiv.ll
2008-07-07-VectorCompare.ll
2009-06-20-constexpr-zero-lhs.ll
2009-09-01-GEP-Crash.ll
InsertElement-inseltpoison.ll Precommit transform tests that have poison as insertelement's placeholder 2020-12-24 11:46:17 +09:00
InsertElement.ll [ConstantFold] Fold more operations to poison 2020-11-29 21:19:48 +09:00
abs.ll
allones.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
avx512.ll
basictest.ll [DIE] Remove DeadInstEliminationPass 2020-09-21 12:12:25 -07:00
binop-identity-undef.ll
bitcast.ll
bitcount.ll
bswap.ll
calls-math-finite.ll
calls.ll
cast-vector.ll
cast.ll [ConstantFold] Fold more operations to poison 2020-11-29 21:19:48 +09:00
constant-expr.ll
convert-from-fp16.ll
copysign.ll
div-zero.ll
extractelement-vscale.ll
extractvalue.ll
float-to-ptr-cast.ll
fma.ll
fneg.ll
fp-undef.ll [ConstantFolding] add undef handling for fmin/fmax intrinsics 2020-09-19 10:31:01 -04:00
freeze.ll
funnel-shift.ll
gep-alias.ll
gep-constanfolding-error.ll
gep-zeroinit-vector.ll
gep.ll
insertvalue.ll
loads.ll
logicaltest.ll [DIE] Remove DeadInstEliminationPass 2020-09-21 12:12:25 -07:00
math-1.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
math-2.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
min-max.ll
overflow-ops.ll [ConstProp] Remove unused check-prefixes 2020-11-09 13:12:40 +00:00
phi.ll [DIE] Remove DeadInstEliminationPass 2020-09-21 12:12:25 -07:00
poison.ll [ConstantFold] Don't fold and/or i1 poison to poison (NFC) 2020-11-30 22:58:31 +09:00
remtest.ll [DIE] Remove DeadInstEliminationPass 2020-09-21 12:12:25 -07:00
rint.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
round.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
saturating-add-sub.ll
shift.ll [ConstantFold] Fold more operations to poison 2020-11-29 21:19:48 +09:00
smul-fix-sat.ll
smul-fix.ll
sse.ll
timeout.ll
trunc.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
trunc_vec.ll
vecreduce.ll [llvm][mlir] Promote the experimental reduction intrinsics to be first class intrinsics. 2020-10-07 10:36:44 -07:00
vector-undef-elts.ll [ConstantFold] Fold more operations to poison 2020-11-29 21:19:48 +09:00
vectorgep-crash.ll
vscale-getelementptr.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
vscale-inseltpoison.ll Precommit transform tests that have poison as insertelement's placeholder 2020-12-24 11:46:17 +09:00
vscale-shufflevector-inseltpoison.ll Precommit transform tests that have poison as insertelement's placeholder 2020-12-24 11:46:17 +09:00
vscale-shufflevector.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
vscale.ll [ConstantFold] Fold more operations to poison 2020-11-29 21:19:48 +09:00