[all-commits] [llvm/llvm-project] b5192c: [mlir][spirv] Fix result type for arith.cmpi/cmpf ...
Lei Zhang via All-commits
all-commits at lists.llvm.org
Mon Jun 13 10:16:17 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5192cbe506c13c13fc6a3cefda3a8ecef72bd40
https://github.com/llvm/llvm-project/commit/b5192cbe506c13c13fc6a3cefda3a8ecef72bd40
Author: Lei Zhang <antiagainst at google.com>
Date: 2022-06-13 (Mon, 13 Jun 2022)
Changed paths:
M mlir/lib/Conversion/ArithmeticToSPIRV/ArithmeticToSPIRV.cpp
M mlir/test/Conversion/ArithmeticToSPIRV/arithmetic-to-spirv.mlir
Log Message:
-----------
[mlir][spirv] Fix result type for arith.cmpi/cmpf conversion
We cannot directly use the original result type; instead we need
to deduce it from the converted operand type. This addresses
invalid ops generated from converting single element vectors.
Reviewed By: ThomasRaoux
Differential Revision: https://reviews.llvm.org/D127574
More information about the All-commits
mailing list