mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-20 03:18:09 +00:00
blockfreq: Fixing MSVC after r206548?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc1e1707b8
commit
a3610962a9
@ -258,7 +258,7 @@ std::pair<uint64_t, int16_t> PositiveFloatBase::divide64(uint64_t Dividend,
|
||||
|
||||
// Divide.
|
||||
bool DoesDivide = IsOverflow || Divisor <= Dividend;
|
||||
Quotient = (Quotient << 1) | DoesDivide;
|
||||
Quotient = (Quotient << 1) | uint64_t(DoesDivide);
|
||||
Dividend -= DoesDivide ? Divisor : 0;
|
||||
}
|
||||
|
||||
@ -382,7 +382,7 @@ struct LoopStack {
|
||||
void push(const BlockNode &LoopHead, const BlockNode &LatestBackedge) {
|
||||
assert(LoopHead.isValid());
|
||||
assert(LatestBackedge.isValid());
|
||||
OpenLoops.push_back({LoopHead, LatestBackedge});
|
||||
OpenLoops.emplace_back(LoopHead, LatestBackedge);
|
||||
}
|
||||
void pop(const BlockNode &FinishedNode) {
|
||||
while (!empty() && top().LatestBackedge <= FinishedNode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user