llvm-project/llvm/test/Analysis
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
..
AliasSet [NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch 2020-08-06 10:56:00 -07:00
AssumptionCache
BasicAA [BasicAA] Enable -basic-aa-recphi by default 2020-08-04 10:43:42 +01:00
BlockFrequencyInfo
BranchProbabilityInfo Revert "[BPI] Improve static heuristics for integer comparisons" 2020-08-17 20:44:33 +02:00
CFLAliasAnalysis [BasicAA] Rename -disable-basicaa to -disable-basic-aa to be consistent with the canonical name "basic-aa" 2020-06-26 20:55:44 -07:00
CallGraph [CallGraph] Ignore callback uses 2020-07-14 13:08:49 -07:00
ConstantFolding [WebAssembly][ConstantFolding] Fold fp-to-int truncation intrinsics 2020-08-10 12:40:05 -07:00
CostModel [SVE] Fix TypeSize related warnings with IR truncates of scalable vectors 2020-08-25 09:17:56 +01:00
DDG [DDG] Data Dependence Graph - Graph Simplification 2020-02-19 13:41:51 -05:00
Delinearization [BasicAA] Rename deprecated -basicaa to -basic-aa 2020-06-26 20:41:37 -07:00
DemandedBits [DemandedBits] Improve accuracy of Add propagator 2020-08-17 12:54:09 +01:00
DependenceAnalysis [tbaa] Rename type-based-aa -> tbaa 2020-07-30 19:51:35 -07:00
DivergenceAnalysis Verifier: Disallow byval and similar for AMDGPU calling conventions 2020-07-20 10:58:57 -04:00
DominanceFrontier
Dominators [NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch 2020-08-06 10:56:00 -07:00
FunctionPropertiesAnalysis Add new function properties to FunctionPropertiesAnalysis 2020-07-23 12:46:47 -07:00
GlobalsModRef [BasicAA] Rename -disable-basicaa to -disable-basic-aa to be consistent with the canonical name "basic-aa" 2020-06-26 20:55:44 -07:00
IVUsers [NPM][IVUsers] Rename ivusers -> iv-users 2020-07-15 09:38:21 -07:00
LazyCallGraph [Tests] Migrate a number of tests to gc-live bundle representation 2020-06-05 16:44:04 -07:00
LazyValueAnalysis [LVI] Don't require DominatorTree in LVI (NFC) 2020-05-19 20:21:46 +02:00
LegacyDivergenceAnalysis Verifier: Disallow byval and similar for AMDGPU calling conventions 2020-07-20 10:58:57 -04:00
Lint
LoopAccessAnalysis [NFC] GetUnderlyingObject -> getUnderlyingObject 2020-07-30 21:08:24 -07:00
LoopCacheAnalysis/PowerPC [LoopCacheAnalysis]: Add support for negative stride 2020-02-10 13:22:35 -05:00
LoopInfo
LoopNestAnalysis [LoopNest]: Analysis to discover properties of a loop nest. 2020-03-03 18:25:19 +00:00
MemoryDependenceAnalysis [BasicAA] Rename deprecated -basicaa to -basic-aa 2020-06-26 20:41:37 -07:00
MemorySSA [NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch 2020-08-06 10:56:00 -07:00
MustExecute Infer alignment of unmarked loads in IR/bitcode parsing. 2020-05-14 13:03:50 -07:00
PhiValues
PostDominators
ProfileSummary
RegionInfo
ScalarEvolution Revert "[SCEV] Look through single value PHIs." 2020-08-12 23:13:24 -07:00
ScopedNoAliasAA Rename scoped-noalias -> scoped-noalias-aa 2020-07-24 12:14:27 -07:00
StackSafetyAnalysis [NFC][StackSafety] Test that StackLifetime looks through stripPointerCasts 2020-08-18 16:21:00 -07:00
TypeBasedAliasAnalysis [tbaa] Rename type-based-aa -> tbaa 2020-07-30 19:51:35 -07:00
ValueTracking Fix tests after 16f777f421 2020-07-14 22:52:26 +02:00
alias-analysis-uses.ll [FunctionAttrs] Rename functionattrs -> function-attrs 2020-07-28 09:09:13 -07:00