search for: curtbb

Displaying 2 results from an estimated 2 matches for "curtbb".

Did you mean: curbb
2007 Jul 27
2
[LLVMdev] Couple of changes (2005 and other toolchain related)
...debug validator checks to make sure that if !(lhs < rhs) then (rhs < lhs || rhs == lhs), so the '<' operator needs to be non-ambiguous. * BranchFolding.cpp, line 927, replace with: std::size_t dist = std::distance(PI, MBB->pred_begin()); ReplaceUsesOfBlockWith(*PI, MBB, CurTBB, TII); PI = MBB->pred_begin(); std::advance(PI, dist); I'm not sure if that is the correct fix, but what is currently there is definitely not correct. ReplaceUsesOfBlockWith can invalidate iterators (because internally it adds or removes items from containers) so we need to reset PI if th...
2007 Jul 27
0
[LLVMdev] Couple of changes (2005 and other toolchain related)
...debug validator checks to make sure that if !(lhs < rhs) then (rhs < lhs || rhs == lhs), so the '<' operator needs to be non-ambiguous. * BranchFolding.cpp, line 927, replace with: std::size_t dist = std::distance(PI, MBB->pred_begin()); ReplaceUsesOfBlockWith(*PI, MBB, CurTBB, TII); PI = MBB->pred_begin(); std::advance(PI, dist); I'm not sure if that is the correct fix, but what is currently there is definitely not correct. ReplaceUsesOfBlockWith can invalidate iterators (because internally it adds or removes items from containers) so we need to reset PI if th...