summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-02-22 22:23:11 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-02-22 22:23:11 +0000
commit964b70d559fad083744ea2791def82c564087388 (patch)
tree7c9b53c866f77f720f425fbc81f5cfb7cb0227b5 /llvm/lib/CodeGen/MachineFunction.cpp
parent157a5d5312bda0ed8da6a434ebcecfe6e646c63e (diff)
downloadbcm5719-llvm-964b70d559fad083744ea2791def82c564087388.tar.gz
bcm5719-llvm-964b70d559fad083744ea2791def82c564087388.zip
[X86] Create mergeable constant pool entries for AVX
We supported creating mergeable constant pool entries for smaller constants but not for 32-byte AVX constants. llvm-svn: 261584
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index a2823500fa6..e93299fccb2 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -852,6 +852,8 @@ MachineConstantPoolEntry::getSectionKind(const DataLayout *DL) const {
return SectionKind::getMergeableConst8();
case 16:
return SectionKind::getMergeableConst16();
+ case 32:
+ return SectionKind::getMergeableConst32();
default:
return SectionKind::getReadOnly();
}
OpenPOWER on IntegriCloud