[clang] [CIR] Add cir-simplify pass (PR #138317)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 11:23:11 PDT 2025
================
@@ -29,6 +29,20 @@ def CIRCanonicalize : Pass<"cir-canonicalize"> {
let dependentDialects = ["cir::CIRDialect"];
}
+def CIRSimplify : Pass<"cir-simplify"> {
+ let summary = "Performs CIR simplification and code optimization";
+ let description = [{
+ The pass performs code simplification and optimization on CIR.
+
+ Unlike the `cir-canonicalize` pass, this pass contains more aggresive code
+ transformations that could significantly affect CIR-to-source fidelity.
----------------
andykaylor wrote:
The phrase "could significantly affect CIR-to-source fidelity" is somewhat alarming. I don't think we're doing anything that changes semantics are we? I think this comment is about transformations that could affect ease of debugging. Perhaps we can word it more gently?
https://github.com/llvm/llvm-project/pull/138317
More information about the cfe-commits
mailing list