Skip to content

Commit

Permalink
fail for complex types
Browse files Browse the repository at this point in the history
Signed-off-by: Nirvedh <[email protected]>
  • Loading branch information
nirvedhmeshram committed Feb 14, 2025
1 parent 6485474 commit 331092b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ static unsigned getRepresentativeBitWidth(linalg::LinalgOp linalgOp) {
std::optional<unsigned> maxBitWidth;
auto updateElementTypeBitWidth = [&](Value v) {
auto elementType = getElementTypeOrSelf(v);
if(!elementType.isIntOrFloat()){
return;
}
unsigned bitWidth = elementType.getIntOrFloatBitWidth();
if (maxBitWidth) {
maxBitWidth = std::max(maxBitWidth.value(), bitWidth);
Expand Down

0 comments on commit 331092b

Please sign in to comment.