@@ -0,0 +1,14 @@
+; RUN: opt -S -passes=normalize < %s | FileCheck %s
+
+define double @foo(double %a0, double %a1) {
+entry:
+; CHECK: %b
+; CHECK: %d
+; CHECK: %a
+; CHECK: %c
+ %a = fmul double %a0, %a1
+ %b = fmul double %a0, 2.00e+00
+ %c = fmul double %a, 6.00e+00
https://github.com/justinfargnoli updated
https://github.com/llvm/llvm-project/pull/68176
>From f792a030ac1761a96176332fea906cd2d1826c7b Mon Sep 17 00:00:00 2001
From: justinfargnoli
Date: Sat, 12 Aug 2023 10:58:45 -0700
Subject: [PATCH 01/28] Add IRCanonicalizer.cpp
---
llvm/lib/Transforms/U
https://github.com/nikic commented:
Could you please update the patch description with some information on what
kind of normalization the pass does?
It would also be great to post some examples, because I don't really get what
kind of renaming and reordering this does just looking at the test