From e8b923f1aa0cc2904b4bdd0aad39093d5ce915ce Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 8 Dec 2022 02:27:37 +0300 Subject: [PATCH] [NFC] Port all SimplifyCFG tests to `-passes=` syntax --- llvm/test/Transforms/SimplifyCFG/merge-cond-stores-2.ll | 2 +- llvm/test/Transforms/SimplifyCFG/speculate-dbgvalue.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/Transforms/SimplifyCFG/merge-cond-stores-2.ll b/llvm/test/Transforms/SimplifyCFG/merge-cond-stores-2.ll index 43fe5ae..2fd1011 100644 --- a/llvm/test/Transforms/SimplifyCFG/merge-cond-stores-2.ll +++ b/llvm/test/Transforms/SimplifyCFG/merge-cond-stores-2.ll @@ -4,7 +4,7 @@ target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "armv7--linux-gnueabihf" -; This is a bit reversal that has been run through the early optimizer (-mem2reg -gvn -instcombine). +; This is a bit reversal that has been run through the early optimizer (-mem2reg -passes=gvn -instcombine). ; There should be no additional PHIs created at all. The store should be on its own in a predicated ; block and there should be no PHIs. diff --git a/llvm/test/Transforms/SimplifyCFG/speculate-dbgvalue.ll b/llvm/test/Transforms/SimplifyCFG/speculate-dbgvalue.ll index db56bea..eb62d6c 100644 --- a/llvm/test/Transforms/SimplifyCFG/speculate-dbgvalue.ll +++ b/llvm/test/Transforms/SimplifyCFG/speculate-dbgvalue.ll @@ -11,7 +11,7 @@ ; } ; ; using -; clang speculate-dbgvalue.c -S -emit-llvm -g -O3 -mllvm -disable-llvm-optzns -o - | opt -mem2reg -S +; clang speculate-dbgvalue.c -S -emit-llvm -g -O3 -mllvm -disable-llvm-optzns -o - | opt -passes=mem2reg -S ; Function Attrs: nounwind uwtable -- 2.7.4