[all-commits] [llvm/llvm-project] bdaf03: [mlir] Always create a list of alias scopes when e...

ftynse via All-commits all-commits at lists.llvm.org
Tue Sep 21 15:01:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdaf038266c28a67bce83491dafd6752e53d4e33
      https://github.com/llvm/llvm-project/commit/bdaf038266c28a67bce83491dafd6752e53d4e33
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2021-09-22 (Wed, 22 Sep 2021)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [mlir] Always create a list of alias scopes when emitting LLVM IR

Previously, the translation to LLVM IR would emit IR that directly uses
a scope metadata node in case only one scope was in use in alias.scopes
or noalias metadata. It should always be a list of scopes. The verifier
change in 8700f2bd36bb9b7d7075ed4dac0aef92b9489237 enforced this and
broke the test. Fix the translation to always create a list of scopes
using a new metadata node, update and reenable the respective test.

Fixes PR51919.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list