[all-commits] [llvm/llvm-project] 06c675: [mlir][spirv] Handle corner cases for math.powf co...

Lei Zhang via All-commits all-commits at lists.llvm.org
Tue Jun 14 20:03:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06c6758a98161262ac97fad42248139d78d39581
      https://github.com/llvm/llvm-project/commit/06c6758a98161262ac97fad42248139d78d39581
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2022-06-14 (Tue, 14 Jun 2022)

  Changed paths:
    M mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
    M mlir/test/Conversion/MathToSPIRV/math-to-glsl-spirv.mlir

  Log Message:
  -----------
  [mlir][spirv] Handle corner cases for math.powf conversion

Per GLSL Pow extended instruction spec: "Result is undefined if
x < 0. Result is undefined if x = 0 and y <= 0." So we need to
handle negative `x` values specifically.

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D127816




More information about the All-commits mailing list