[all-commits] [llvm/llvm-project] 09adb5: [MLIR][EmitC] Fix bug in EmitC form-expressions pa...

Chris via All-commits all-commits at lists.llvm.org
Mon May 6 05:13:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09adb53118e50ad433b7df6d84a4e2937bfb97d5
      https://github.com/llvm/llvm-project/commit/09adb53118e50ad433b7df6d84a4e2937bfb97d5
  Author: Chris <cbate at nvidia.com>
  Date:   2024-05-06 (Mon, 06 May 2024)

  Changed paths:
    M mlir/lib/Dialect/EmitC/Transforms/FormExpressions.cpp
    M mlir/test/Dialect/EmitC/transforms.mlir

  Log Message:
  -----------
  [MLIR][EmitC] Fix bug in EmitC form-expressions pass (#91084)

An `emitc.expression` can only yield a single result, but some
operations which have the `CExpression` trait can have multiple results,
which can result in a crash when applying the `fold-expressions` pass.
This change adds a check for the single-result condition and a simple
test.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list