Fix optimization regressions for operations on [x; n]-initialized arrays.
This commit is contained in:
@@ -52,7 +52,7 @@ pub fn slice_for_each<'blk, 'tcx, F>(bcx: Block<'blk, 'tcx>,
|
||||
let current = Phi(header_bcx, val_ty(start), &[start], &[bcx.llbb]);
|
||||
|
||||
let keep_going =
|
||||
ICmp(header_bcx, llvm::IntULT, current, end, DebugLoc::None);
|
||||
ICmp(header_bcx, llvm::IntNE, current, end, DebugLoc::None);
|
||||
CondBr(header_bcx, keep_going, body_bcx.llbb, next_bcx.llbb, DebugLoc::None);
|
||||
|
||||
let body_bcx = f(body_bcx, if zst { data_ptr } else { current });
|
||||
|
||||
2
src/llvm
2
src/llvm
Submodule src/llvm updated: eee68eafa7...16b79d01fd
@@ -1,4 +1,4 @@
|
||||
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
|
||||
# The actual contents of this file do not matter, but to trigger a change on the
|
||||
# build bots then the contents should be changed so git updates the mtime.
|
||||
2016-08-23
|
||||
2016-08-30
|
||||
|
||||
Reference in New Issue
Block a user