[flang-commits] [flang] [flang] Simplify the comparison of characters (PR #154593)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Fri Sep 5 11:29:59 PDT 2025


================
@@ -0,0 +1,127 @@
+//===- ExpressionSimplification.cpp - Simplify HLFIR expressions ----------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "flang/Optimizer/Builder/FIRBuilder.h"
+#include "flang/Optimizer/HLFIR/HLFIROps.h"
+#include "flang/Optimizer/HLFIR/Passes.h"
+#include "llvm/Support/DebugLog.h"
+
+namespace hlfir {
+#define GEN_PASS_DEF_EXPRESSIONSIMPLIFICATION
+#include "flang/Optimizer/HLFIR/Passes.h.inc"
+} // namespace hlfir
+
+#define DEBUG_TYPE "expression-simplification"
----------------
vzakhari wrote:

```suggestion
#define DEBUG_TYPE "hlfir-expression-simplification"
```

https://github.com/llvm/llvm-project/pull/154593


More information about the flang-commits mailing list