llvm-project/llvm/lib/Transforms
Joe Ellis 0f83505593 [SVE][InstCombine] Fix TypeSize warning in canReplaceGEPIdxWithZero
The warning would fire when calling canReplaceGEPIdxWithZero on a GEP
whose source element type is a scalable vector. The size of scalable
vector types is not known, so this optimization cannot be performed.

This patch fixes the issue by:

- bailing out early in this routine if the GEP instruction's source
  element type is a scalable vector.

- making use of getFixedSize -- this removes the dependency on the
  deprecated interface.

Reviewed By: fpetrogalli

Differential Revision: https://reviews.llvm.org/D89968
2020-10-26 17:40:26 +00:00
..
AggressiveInstCombine [AggressiveInstCombine] foldAnyOrAllBitsSet - add uniform vector support 2020-10-15 11:02:35 +01:00
CFGuard [NFCI][IR] Introduce CallBase::Create() wrapper 2020-07-07 01:16:36 +03:00
Coroutines [Coroutines] Refactor/Rewrite Spill and Alloca processing 2020-10-10 22:21:34 -07:00
Hello
HelloNew Reland [docs][NewPM] Add docs for writing NPM passes 2020-09-14 16:06:19 -07:00
IPO [AutoFDO] Remove a broken assert in merging inlinee samples 2020-10-23 17:42:21 -07:00
InstCombine [SVE][InstCombine] Fix TypeSize warning in canReplaceGEPIdxWithZero 2020-10-26 17:40:26 +00:00
Instrumentation [PGO] Remove the old memop value profiling buckets. 2020-10-15 10:09:49 -07:00
ObjCARC [ObjCARC] Initialize return value 2020-09-21 11:03:44 -07:00
Scalar Fix broken build after previous commit 2020-10-26 14:55:46 +07:00
Utils [InstCombine] collectBitParts - add bitreverse intrinsic support. 2020-10-26 14:36:36 +00:00
Vectorize [SVE][AArch64] Fix TypeSize warning in loop vectorization legality 2020-10-26 17:40:04 +00:00
CMakeLists.txt Reland [docs][NewPM] Add docs for writing NPM passes 2020-09-14 16:06:19 -07:00
LLVMBuild.txt Reland [docs][NewPM] Add docs for writing NPM passes 2020-09-14 16:06:19 -07:00