[llvm] Test for future commit in NewGVN (PR #66313)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 02:47:50 PDT 2023


================
@@ -0,0 +1,62 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
+; RUN: opt -passes=newgvn -S < %s | FileCheck %s
+
+ at c = global i32 0, align 4
+
+; Function Attrs: nounwind optsize uwtable
+define dso_local i32 @main(i1 %cond, i32 %0, i32 %1) {
----------------
nikic wrote:

Can drop dso_local. I'd also recommend to avoid the use of unnamed values, i.e. replace `i32 %0` with `i32 %arg0` etc.

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


More information about the llvm-commits mailing list