diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-17 06:00:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-17 06:00:21 +0000 |
commit | 2a099c04c1427647075f72cb7f5cc761b2e45072 (patch) | |
tree | 9c3cb3c580c326326b8a944ee7797c59dd6dc6e9 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 31b7d89e667fa8e92ec798c019d5ac245b2b0ec7 (diff) | |
download | llvm-2a099c04c1427647075f72cb7f5cc761b2e45072.zip llvm-2a099c04c1427647075f72cb7f5cc761b2e45072.tar.gz llvm-2a099c04c1427647075f72cb7f5cc761b2e45072.tar.bz2 |
Pull some code out into a helper function.
Effeciently codegen even splats in the range [-32,30].
This allows us to codegen <30,30,30,30> as:
vspltisw v0, 15
vadduwm v2, v0, v0
instead of as a cp load.
llvm-svn: 27750
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions