summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/conditional-gnu-ext.c
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-09-20 22:52:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-09-20 22:52:00 +0000
commitf3e9a48584f344caa7b211e330387fb39b762265 (patch)
treeecf3b0aa2e87dde290e0a7a674abeb609acf1f4c /clang/test/CodeGen/conditional-gnu-ext.c
parentabb5a7370d021c33c9f4e4640acfe9289b21c93c (diff)
downloadbcm5719-llvm-f3e9a48584f344caa7b211e330387fb39b762265.tar.gz
bcm5719-llvm-f3e9a48584f344caa7b211e330387fb39b762265.zip
Enable machine sinking critical edge splitting. e.g.
define double @foo(double %x, double %y, i1 %c) nounwind { %a = fdiv double %x, 3.2 %z = select i1 %c, double %a, double %y ret double %z } Was: _foo: divsd LCPI0_0(%rip), %xmm0 testb $1, %dil jne LBB0_2 movaps %xmm1, %xmm0 LBB0_2: ret Now: _foo: testb $1, %dil je LBB0_2 divsd LCPI0_0(%rip), %xmm0 ret LBB0_2: movaps %xmm1, %xmm0 ret This avoids the divsd when early exit is taken. rdar://8454886 llvm-svn: 114372
Diffstat (limited to 'clang/test/CodeGen/conditional-gnu-ext.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud