[all-commits] [llvm/llvm-project] 392cc8: [mlir][LLVMIR target] Fix llvm.freeze builder to p...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Mon Dec 12 11:43:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 392cc842c26bfc301ea622792a456e9d83aa7dca
      https://github.com/llvm/llvm-project/commit/392cc842c26bfc301ea622792a456e9d83aa7dca
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2022-12-12 (Mon, 12 Dec 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [mlir][LLVMIR target] Fix llvm.freeze builder to prevent crashes

The freeze builder did not assign the result of creating the freeze
operation to $res, which meant that when subsequent translations (such
as a sext) tried to use that result or query its type, mlir-translate
would crash.

This fixes the issue and adds a test for it.

Reviewed By: ftynse

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




More information about the All-commits mailing list