]> git.lizzy.rs Git - rust.git/commitdiff
Fix optimization regressions for operations on [x; n]-initialized arrays.
authorEduard Burtescu <edy.burt@gmail.com>
Wed, 31 Aug 2016 21:27:03 +0000 (00:27 +0300)
committerEduard Burtescu <edy.burt@gmail.com>
Wed, 31 Aug 2016 21:27:03 +0000 (00:27 +0300)
src/librustc_trans/tvec.rs
src/llvm
src/rustllvm/llvm-auto-clean-trigger

index 7e4719870cd83a426f458c65d5c680971c7d9bc7..cf897fc5a151877673768c4fd24d42cb2c652a11 100644 (file)
@@ -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 });
index eee68eafa7e8e4ce996b49f5551636639a6c331a..16b79d01fd6d942cf3c9120b92df56b13ec92665 160000 (submodule)
--- a/src/llvm
+++ b/src/llvm
@@ -1 +1 @@
-Subproject commit eee68eafa7e8e4ce996b49f5551636639a6c331a
+Subproject commit 16b79d01fd6d942cf3c9120b92df56b13ec92665
index 67f8730c25825563934bbc630785f60cb8101224..1080070d21a3bf5bda4e398e12f6f2a5452f6cfd 100644 (file)
@@ -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