aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-02 05:30:25 +0000
committerChris Lattner <sabre@nondot.org>2006-04-02 05:30:25 +0000
commitf42d0aeda16357403fff5729676fab2cb50008c7 (patch)
tree40285de09dc7d93b43f5f8e37ab74bc6aead0320 /llvm/lib/CodeGen/MachineFunction.cpp
parent80fdc1eb6bf93a454585c2f6fe7fb54f81cff8bd (diff)
downloadllvm-f42d0aeda16357403fff5729676fab2cb50008c7.zip
llvm-f42d0aeda16357403fff5729676fab2cb50008c7.tar.gz
llvm-f42d0aeda16357403fff5729676fab2cb50008c7.tar.bz2
Turn altivec lvx/stvx intrinsics into loads and stores. This allows the
elimination of one load from this: int AreSecondAndThirdElementsBothNegative( vector float *in ) { #define QNaN 0x7FC00000 const vector unsigned int testData = (vector unsigned int)( QNaN, 0, 0, QNaN ); vector float test = vec_ld( 0, (float*) &testData ); return ! vec_any_ge( test, *in ); } Now generating: _AreSecondAndThirdElementsBothNegative: mfspr r2, 256 oris r4, r2, 49152 mtspr 256, r4 li r4, lo16(LCPI1_0) lis r5, ha16(LCPI1_0) addi r6, r1, -16 lvx v0, r5, r4 stvx v0, 0, r6 lvx v1, 0, r3 vcmpgefp. v0, v0, v1 mfcr r3, 2 rlwinm r3, r3, 27, 31, 31 xori r3, r3, 1 cntlzw r3, r3 srwi r3, r3, 5 mtspr 256, r2 blr llvm-svn: 27352
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions