mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Revert 131172 as it is causing clang to miscompile itself. I will try
to provide a reduced testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
; RUN: llc < %s -march=x86-64 | FileCheck %s
|
||||
|
||||
; Common "xorb al, al" instruction in the two successor blocks should be
|
||||
; moved to the entry block above the test + je.
|
||||
|
||||
; rdar://9145558
|
||||
|
||||
define zeroext i1 @t(i32 %c) nounwind ssp {
|
||||
entry:
|
||||
; CHECK: t:
|
||||
; CHECK: xorb %al, %al
|
||||
; CHECK: test
|
||||
; CHECK: je
|
||||
%tobool = icmp eq i32 %c, 0
|
||||
br i1 %tobool, label %return, label %if.then
|
||||
|
||||
if.then:
|
||||
; CHECK: callq
|
||||
%call = tail call zeroext i1 (...)* @foo() nounwind
|
||||
br label %return
|
||||
|
||||
return:
|
||||
; CHECK: ret
|
||||
%retval.0 = phi i1 [ %call, %if.then ], [ false, %entry ]
|
||||
ret i1 %retval.0
|
||||
}
|
||||
|
||||
declare zeroext i1 @foo(...)
|
Reference in New Issue
Block a user