There was an alias between 'simplifycfg' and 'simplify-cfg' in the PassRegistry. That was the original reason for this patch, which effectively removes the alias. This patch also replaces all occurrances of 'simplify-cfg' by 'simplifycfg'. Reason for choosing that form for the name is that it matches the DEBUG_TYPE for the pass, and the legacy PM name and also how it is spelled out in other passes such as 'loop-simplifycfg', and in other options such as 'simplifycfg-merge-cond-stores'. I for some reason the name should be changed to 'simplify-cfg' in the future, then I think such a renaming should be more widely done and not only impacting the PassRegistry. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D105627
23 lines
510 B
LLVM
23 lines
510 B
LLVM
; RUN: opt -S -prune-eh -enable-new-pm=0 < %s | FileCheck %s
|
|
; RUN: opt -S -passes='function-attrs,function(simplifycfg)' < %s | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @f() #0 {
|
|
entry:
|
|
call void asm sideeffect "ret\0A\09", "~{dirflag},~{fpsr},~{flags}"()
|
|
unreachable
|
|
}
|
|
|
|
define i32 @g() {
|
|
entry:
|
|
call void @f()
|
|
ret i32 42
|
|
}
|
|
|
|
; CHECK-LABEL: define i32 @g()
|
|
; CHECK: ret i32 42
|
|
|
|
attributes #0 = { naked noinline }
|