mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
move the PR6214 microoptzn to this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3b24f80d9
commit
7db21bdb7d
@ -936,3 +936,21 @@ Also, the 'ret's should be shared. This is PR6032.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
These should compile into the same code (PR6214): Perhaps instcombine should
|
||||
canonicalize the former into the later?
|
||||
|
||||
define float @foo(float %x) nounwind {
|
||||
%t = bitcast float %x to i32
|
||||
%s = and i32 %t, 2147483647
|
||||
%d = bitcast i32 %s to float
|
||||
ret float %d
|
||||
}
|
||||
|
||||
declare float @fabsf(float %n)
|
||||
define float @bar(float %x) nounwind {
|
||||
%d = call float @fabsf(float %x)
|
||||
ret float %d
|
||||
}
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user