1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[AVX] Unique BitInit

Keep only two copies of BitInit: one for true and one for false.

llvm-svn: 136488
This commit is contained in:
David Greene 2011-07-29 19:07:10 +00:00
parent 0f35a5d4aa
commit 65994da789

View File

@ -1,3 +1,4 @@
//===- Record.cpp - Record implementation ---------------------------------===//
//
// The LLVM Compiler Infrastructure
@ -448,7 +449,10 @@ const UnsetInit *UnsetInit::get() {
}
const BitInit *BitInit::get(bool V) {
return new BitInit(V);
static const BitInit True(true);
static const BitInit False(false);
return V ? &True : &False;
}
const BitsInit *BitsInit::get(ArrayRef<const Init *> Range) {