llvm-project/llvm/test/Transforms/InstCombine/AArch64
David Sherwood 7b64765cd1 [SVE] Fix TypeSize related warnings with IR truncates of scalable vectors
In getCastInstrCost when the instruction is a truncate we were relying
upon the implicit TypeSize -> uint64_t cast when asking if a given type
has the same size as a legal integer. I've changed the code to only
ask the question if the type is fixed length.

I have also changed InstCombinerImpl::SimplifyDemandedUseBits to bail
out for now if the type is a scalable vector.

I've added the following new tests:

  Analysis/CostModel/AArch64/sve-trunc.ll
  Transforms/InstCombine/AArch64/sve-trunc.ll

for both of these fixes.

Differential revision: https://reviews.llvm.org/D86432
2020-08-25 09:17:56 +01:00
..
2012-04-23-Neon-Intrinsics.ll
aes-intrinsics.ll
lit.local.cfg
sve-bitcast.ll
sve-trunc.ll [SVE] Fix TypeSize related warnings with IR truncates of scalable vectors 2020-08-25 09:17:56 +01:00
tbl1.ll