[all-commits] [llvm/llvm-project] a934dd: [mlir][EmitC] Do not inline expressions used by op...

Simon Camphausen via All-commits all-commits at lists.llvm.org
Tue Jun 4 04:14:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a934ddcf7edb583e93102e2fa8b3b05ab34547f2
      https://github.com/llvm/llvm-project/commit/a934ddcf7edb583e93102e2fa8b3b05ab34547f2
  Author: Simon Camphausen <simon.camphausen at iml.fraunhofer.de>
  Date:   2024-06-04 (Tue, 04 Jun 2024)

  Changed paths:
    M mlir/lib/Target/Cpp/TranslateToCpp.cpp
    M mlir/test/Target/Cpp/expressions.mlir

  Log Message:
  -----------
  [mlir][EmitC] Do not inline expressions used by ops with the CExpression trait (#93691)

Currently an expression is inlined without emitting enclosing
parentheses regardless of the context of the user. This could led to
wrong evaluation order depending on the precedence of both expressions.
If the inlining is intended, the user operation should be merged into
the expression op.

Fixes #93470.



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