Skip to content

Update llvm-project submodule #83030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/llvm-project
Submodule llvm-project updated 39 files
+10 −0 clang-tools-extra/docs/ReleaseNotes.rst
+3 −17 clang-tools-extra/docs/clang-tidy/checks/readability-deleted-default.rst
+41 −1 clang/docs/ReleaseNotes.rst
+2 −0 clang/docs/analyzer/checkers.rst
+1 −1 clang/lib/Frontend/InitPreprocessor.cpp
+2 −1 clang/test/Lexer/cxx-features.cpp
+7 −1 compiler-rt/lib/builtins/CMakeLists.txt
+0 −1 llvm/include/llvm/Analysis/AliasSetTracker.h
+4 −1 llvm/include/llvm/CodeGen/FastISel.h
+1 −0 llvm/lib/Analysis/AliasSetTracker.cpp
+11 −4 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+7 −3 llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+29 −0 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+4 −3 llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+6 −2 llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+3 −10 llvm/lib/Transforms/Scalar/LICM.cpp
+23 −1 llvm/lib/Transforms/Utils/Local.cpp
+4 −0 llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
+9 −2 llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+61 −1 llvm/test/CodeGen/AArch64/vecreduce-fmax-legalization.ll
+61 −1 llvm/test/CodeGen/AArch64/vecreduce-fmin-legalization.ll
+55 −0 llvm/test/CodeGen/X86/pr49393.ll
+27 −0 llvm/test/CodeGen/X86/pr49467.ll
+29 −15 llvm/test/CodeGen/X86/shift-double.ll
+38 −0 llvm/test/Transforms/InstCombine/select-imm-canon.ll
+34 −0 llvm/test/Transforms/LICM/promote-atomic.ll
+24 −24 llvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll
+6 −6 llvm/test/Transforms/LoopVectorize/X86/x86-interleaved-accesses-masked-group.ll
+1 −1 llvm/test/Transforms/LoopVectorize/if-conversion-nest.ll
+1 −1 llvm/test/Transforms/LoopVectorize/if-pred-non-void.ll
+4 −4 llvm/test/Transforms/LoopVectorize/if-reduction.ll
+40 −0 llvm/test/Transforms/LoopVectorize/pr48832.ll
+2 −2 llvm/test/Transforms/LoopVectorize/reduction-inloop-pred.ll
+2 −2 llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
+200 −0 llvm/test/Transforms/SimplifyCFG/poison-merge.ll
+1 −1 openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
+148 −0 openmp/libomptarget/test/offloading/bug49334.cpp
+5 −0 openmp/runtime/cmake/config-ix.cmake
+2 −1 openmp/runtime/src/kmp_tasking.cpp
17 changes: 17 additions & 0 deletions src/test/ui/issues/issue-82833-slice-miscompile.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// run-pass
// compile-flags: -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Copt-level=0 -Cdebuginfo=2
// ignore-tidy-linelength

// Make sure LLVM does not miscompile this.

fn make_string(ch: char) -> String {
let mut bytes = [0u8; 4];
ch.encode_utf8(&mut bytes).into()
}

fn main() {
let ch = '😃';
dbg!(ch);
let string = make_string(ch);
dbg!(string);
}
19 changes: 19 additions & 0 deletions src/test/ui/issues/issue-82859-slice-miscompile.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// run-pass
// compile-flags: -Copt-level=0 -Cdebuginfo=2

// Make sure LLVM does not miscompile this.

fn indirect_get_slice() -> &'static [usize] {
&[]
}

#[inline(always)]
fn get_slice() -> &'static [usize] {
let ret = indirect_get_slice();
ret
}

fn main() {
let output = get_slice().len();
assert_eq!(output, 0);
}