summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-16 22:05:41 +0000
committerDan Gohman <gohman@apple.com>2008-09-16 22:05:41 +0000
commit64d6c6fe301b987afba0cb07961400d11e463967 (patch)
treea81cb3ed52b97bebf62a63f9d0a71041dbdfef50 /clang/lib/Sema/SemaChecking.cpp
parent24c79f28b16affb4d6cd355d1b20c4297eb4293f (diff)
downloadbcm5719-llvm-64d6c6fe301b987afba0cb07961400d11e463967.tar.gz
bcm5719-llvm-64d6c6fe301b987afba0cb07961400d11e463967.zip
Change SelectionDAG::getConstantPool to always set the alignment of the
ConstantPoolSDNode, using the target's preferred alignment for the constant type. In LegalizeDAG, when performing loads from the constant pool, the ConstantPoolSDNode's alignment is used in the calls to getLoad and getExtLoad. This change prevents SelectionDAG::getLoad/getExtLoad from incorrectly choosing the ABI alignment for constant pool loads when Alignment == 0. The incorrect alignment is only a performance issue when ABI alignment does not equal preferred alignment (i.e., on x86 it was generating MOVUPS instead of MOVAPS for v4f32 constant loads when the default ABI alignment for 128bit vectors is forced to 1 byte.) Patch by Paul Redmond! llvm-svn: 56253
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud