about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-03-25 20:16:01 -0700
committerbors <bors@rust-lang.org>2013-03-25 20:16:01 -0700
commit02d5f090dcefb43625dc67d0d9147dbc9776c9b1 (patch)
tree5a0b8446923f3f9beaba3ae091ae6509b9914088 /src/rt/sync/rust_thread.cpp
parent00605d58debc26829a1ed106f7a4be3c95860866 (diff)
parente7f42f140b8d2271888f97ba62c5e0570032b6e5 (diff)
downloadrust-02d5f090dcefb43625dc67d0d9147dbc9776c9b1.tar.gz
rust-02d5f090dcefb43625dc67d0d9147dbc9776c9b1.zip
auto merge of #5524 : luqmana/rust/repeat-loop, r=pcwalton
`let v = [24, ..1000];` now more or less emits the same IR as:

```Rust
let mut i = 0;
while i < 1000 {
    v[i] = 24;
    i += 1;
}
```

LLVM will still turn it into a memset if possible with optimization on.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions