projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Access the TargetLoweringInfo from the TargetMachine object instead of caching it...
[oota-llvm.git]
/
lib
/
Support
/
DeltaAlgorithm.cpp
diff --git
a/lib/Support/DeltaAlgorithm.cpp
b/lib/Support/DeltaAlgorithm.cpp
index d176548189191e5f93ea4ded9e82b76c89f3cebb..9e52874de832689a8b5c71d554edb1d2f3977a3f 100644
(file)
--- a/
lib/Support/DeltaAlgorithm.cpp
+++ b/
lib/Support/DeltaAlgorithm.cpp
@@
-30,10
+30,10
@@
void DeltaAlgorithm::Split(const changeset_ty &S, changesetlist_ty &Res) {
// FIXME: This is really slow.
changeset_ty LHS, RHS;
// FIXME: This is really slow.
changeset_ty LHS, RHS;
- unsigned idx = 0;
+ unsigned idx = 0
, N = S.size() / 2
;
for (changeset_ty::const_iterator it = S.begin(),
ie = S.end(); it != ie; ++it, ++idx)
for (changeset_ty::const_iterator it = S.begin(),
ie = S.end(); it != ie; ++it, ++idx)
- ((idx
& 1
) ? LHS : RHS).insert(*it);
+ ((idx
< N
) ? LHS : RHS).insert(*it);
if (!LHS.empty())
Res.push_back(LHS);
if (!RHS.empty())
if (!LHS.empty())
Res.push_back(LHS);
if (!RHS.empty())