llvm-project/llvm/lib/Transforms/AggressiveInstCombine
Stanislav Mekhanoshin bcaf31ec3f [AMDGPU] Allow finer grain control of an unaligned access speed
A target can return if a misaligned access is 'fast' as defined
by the target or not. In reality there can be different levels
of 'fast' and 'slow'. This patch changes the boolean 'Fast'
argument of the allowsMisalignedMemoryAccesses family of functions
to an unsigned representing its speed.

A target can still define it as it wants and the direct translation
of the current code uses 0 and 1 for current false and true. This
makes the change an NFC.

Subsequent patch will start using an actual value of speed in
the load/store vectorizer to compare if a vectorized access going
to be not just fast, but not slower than before.

Differential Revision: https://reviews.llvm.org/D124217
2022-11-17 09:23:53 -08:00
..
AggressiveInstCombine.cpp [AMDGPU] Allow finer grain control of an unaligned access speed 2022-11-17 09:23:53 -08:00
AggressiveInstCombineInternal.h [AggressiveInstCombine] Add `phi` nodes support to `TruncInstCombine` 2022-02-25 07:57:35 +03:00
CMakeLists.txt
TruncInstCombine.cpp Use llvm::is_contained (NFC) 2022-08-27 09:53:11 -07:00