projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21858a9
)
Fix a -Wsign-compare
author
Reid Kleckner
<rnk@google.com>
Mon, 6 Aug 2018 21:26:47 +0000
(21:26 +0000)
committer
Reid Kleckner
<rnk@google.com>
Mon, 6 Aug 2018 21:26:47 +0000
(21:26 +0000)
llvm-svn: 339059
llvm/lib/CodeGen/RegisterCoalescer.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/RegisterCoalescer.cpp
b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index ccb534886fc42f64db30316fc53e80473f7de67b..54a90c71ac962dceb179abd20d5865d6c7a55ba6 100644
(file)
--- a/
llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/
llvm/lib/CodeGen/RegisterCoalescer.cpp
@@
-1407,7
+1407,7
@@
bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP,
if (ToBeUpdated.count(SrcReg))
return true;
-
long
NumCopyUses = 0;
+
unsigned
NumCopyUses = 0;
for (MachineOperand &UseMO : MRI->use_nodbg_operands(SrcReg)) {
if (UseMO.getParent()->isCopyLike())
NumCopyUses++;