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:
parent
0f35a5d4aa
commit
65994da789
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user