aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInstrInfoImpl.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-07-08 02:08:50 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-07-08 02:08:50 +0000
commit515fe3a58877c745a922252a4492e866a2f1e42e (patch)
tree8bd02195c6beaffb5391e1681262b4911b441ce4 /lib/CodeGen/TargetInstrInfoImpl.cpp
parent7835f1fcdbb58093377c9e3476f45a2638565762 (diff)
Optimize some vfp comparisons to integer ones. This patch implements the simplest case when the following conditions are met:
1. The arguments are f32. 2. The arguments are loads and they have no uses other than the comparison. 3. The comparison code is EQ or NE. e.g. vldr.32 s0, [r1] vldr.32 s1, [r0] vcmpe.f32 s1, s0 vmrs apsr_nzcv, fpscr beq LBB0_2 => ldr r1, [r1] ldr r0, [r0] cmp r0, r1 beq LBB0_2 More complicated cases will be implemented in subsequent patches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInstrInfoImpl.cpp')
0 files changed, 0 insertions, 0 deletions