mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[NFC] Fix "not used" warning
This commit is contained in:
parent
d45ba8e94a
commit
519ec0d9ab
@ -502,7 +502,6 @@ LoopIdiomRecognize::isLegalStore(StoreInst *SI) {
|
||||
// are stored. A store of i32 0x01020304 can never be turned into a memset,
|
||||
// but it can be turned into memset_pattern if the target supports it.
|
||||
Value *SplatValue = isBytewiseValue(StoredVal, *DL);
|
||||
Constant *PatternValue = nullptr;
|
||||
|
||||
// Note: memset and memset_pattern on unordered-atomic is yet not supported
|
||||
bool UnorderedAtomic = SI->isUnordered() && !SI->isSimple();
|
||||
@ -515,10 +514,11 @@ LoopIdiomRecognize::isLegalStore(StoreInst *SI) {
|
||||
CurLoop->isLoopInvariant(SplatValue)) {
|
||||
// It looks like we can use SplatValue.
|
||||
return LegalStoreKind::Memset;
|
||||
} else if (!UnorderedAtomic && HasMemsetPattern && !DisableLIRP::Memset &&
|
||||
// Don't create memset_pattern16s with address spaces.
|
||||
StorePtr->getType()->getPointerAddressSpace() == 0 &&
|
||||
(PatternValue = getMemSetPatternValue(StoredVal, DL))) {
|
||||
}
|
||||
if (!UnorderedAtomic && HasMemsetPattern && !DisableLIRP::Memset &&
|
||||
// Don't create memset_pattern16s with address spaces.
|
||||
StorePtr->getType()->getPointerAddressSpace() == 0 &&
|
||||
getMemSetPatternValue(StoredVal, DL)) {
|
||||
// It looks like we can use PatternValue!
|
||||
return LegalStoreKind::MemsetPattern;
|
||||
}
|
||||
|
@ -201,10 +201,9 @@ static void writeStringsAndOffsets(MCStreamer &Out, DWPStringPool &Strings,
|
||||
}
|
||||
|
||||
static uint64_t getCUAbbrev(StringRef Abbrev, uint64_t AbbrCode) {
|
||||
uint64_t CurCode;
|
||||
uint64_t Offset = 0;
|
||||
DataExtractor AbbrevData(Abbrev, true, 0);
|
||||
while ((CurCode = AbbrevData.getULEB128(&Offset)) != AbbrCode) {
|
||||
while (AbbrevData.getULEB128(&Offset) != AbbrCode) {
|
||||
// Tag
|
||||
AbbrevData.getULEB128(&Offset);
|
||||
// DW_CHILDREN
|
||||
|
Loading…
Reference in New Issue
Block a user