
This patch contains a number of changes relating to the above flag; primarily it updates comment references to the old flag names, "-fextend-lifetimes" and "-fextend-this-ptr" to refer to the new names, "-fextend-variable-liveness[={all,this}]". These changes are all NFC. This patch also removes the explicit -fextend-this-ptr-liveness flag alias, and shortens the help-text for the main flag; these are both changes that were meant to be applied in the initial PR (#110000), but due to some user-error on my part they were not included in the merged commit.
25 lines
635 B
LLVM
25 lines
635 B
LLVM
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -O2 -o - \
|
|
; RUN: | FileCheck %s --implicit-check-not=TAILCALL
|
|
; Generated with: clang -emit-llvm -O2 -S -fextend-variable-liveness test.cpp -o -
|
|
; =========== test.cpp ===============
|
|
; extern int bar(int);
|
|
; int foo1(int i)
|
|
; {
|
|
; return bar(i);
|
|
; }
|
|
; =========== test.cpp ===============
|
|
|
|
; CHECK: TAILCALL
|
|
|
|
; ModuleID = 'test.cpp'
|
|
source_filename = "test.cpp"
|
|
|
|
define i32 @_Z4foo1i(i32 %i) local_unnamed_addr optdebug {
|
|
entry:
|
|
%call = tail call i32 @_Z3bari(i32 %i)
|
|
tail call void (...) @llvm.fake.use(i32 %i)
|
|
ret i32 %call
|
|
}
|
|
|
|
declare i32 @_Z3bari(i32) local_unnamed_addr
|