mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[MFMA] [FA] Keep bf16 results of FA dot operations in registers (#298)
This PR enables optimization for keeping bf16 values in registers between dot operations.
This commit is contained in:
@@ -666,8 +666,9 @@ private:
|
||||
SmallVector<Value> vecVals;
|
||||
SmallVector<Type> types;
|
||||
auto elemSize = elemTy.getIntOrFloatBitWidth();
|
||||
// TODO: Support types other than float16.
|
||||
assert(type::isFloat(elemTy) && elemSize == 16);
|
||||
// TODO: Support types other than float16 and
|
||||
// bf16 (represented as int16 in llvm ir).
|
||||
assert((type::isFloat(elemTy) || type::isInt(elemTy)) && elemSize == 16);
|
||||
unsigned vecSize = 4;
|
||||
Type vecTy = vec_ty(elemTy, vecSize);
|
||||
types = SmallVector<Type>(elems / vecSize, vecTy);
|
||||
|
||||
Reference in New Issue
Block a user