mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
b933586592
instructions to reoptimize. Exploit this to more systematically eliminate dead instructions (this isn't very useful in practice but is convenient for analysing some testcase I am working on). No need for WeakVH any more: use an AssertingVH instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158073 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
366 B
LLVM
19 lines
366 B
LLVM
; RUN: opt -reassociate -S < %s | FileCheck %s
|
|
|
|
target triple = "armv7-apple-ios"
|
|
|
|
declare void @use(float)
|
|
|
|
; CHECK: test
|
|
define void @test(float %x, float %y) {
|
|
entry:
|
|
; CHECK: fmul float %x, %y
|
|
; CHECK: fmul float %x, %y
|
|
%0 = fmul float %x, %y
|
|
%1 = fmul float %y, %x
|
|
%2 = fsub float %0, %1
|
|
call void @use(float %0)
|
|
call void @use(float %2)
|
|
ret void
|
|
}
|