Skip to content

Commit

Permalink
Auto merge of #49332 - alexcrichton:beta-next, r=alexcrichton
Browse files Browse the repository at this point in the history
[beta] A few final backports

Backport of

* #48782
* #49273
  • Loading branch information
bors committed Mar 24, 2018
2 parents 1104e76 + a1d7c15 commit da81b88
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
21 changes: 19 additions & 2 deletions src/librustc_metadata/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
use cstore::{self, CrateMetadata, MetadataBlob, NativeLibrary};
use schema::*;

use rustc::hir::map::{DefKey, DefPath, DefPathData, DefPathHash};
use rustc::hir::map::{DefKey, DefPath, DefPathData, DefPathHash,
DisambiguatedDefPathData};
use rustc::hir;
use rustc::middle::cstore::{LinkagePreference, ExternConstBody,
ExternBodyNestedBodies};
Expand Down Expand Up @@ -1061,7 +1062,23 @@ impl<'a, 'tcx> CrateMetadata {

#[inline]
pub fn def_key(&self, index: DefIndex) -> DefKey {
self.def_path_table.def_key(index)
if !self.is_proc_macro(index) {
self.def_path_table.def_key(index)
} else {
// FIXME(#49271) - It would be better if the DefIds were consistent
// with the DefPathTable, but for proc-macro crates
// they aren't.
let name = self.proc_macros
.as_ref()
.unwrap()[index.to_proc_macro_index()].0;
DefKey {
parent: Some(CRATE_DEF_INDEX),
disambiguated_data: DisambiguatedDefPathData {
data: DefPathData::MacroDef(name.as_str()),
disambiguator: 0,
}
}
}
}

// Returns the path leading to the thing with this `id`.
Expand Down
2 changes: 1 addition & 1 deletion src/llvm
Submodule llvm updated 95 files
+8 −0 bindings/go/README.txt
+104 −69 docs/ReleaseNotes.rst
+0 −5 docs/index.rst
+7 −0 include/llvm/Analysis/LazyValueInfo.h
+14 −0 include/llvm/Bitcode/LLVMBitCodes.h
+87 −0 include/llvm/IR/Dominators.h
+9 −0 include/llvm/IR/IntrinsicsX86.td
+38 −0 include/llvm/MC/MCAsmMacro.h
+15 −0 include/llvm/MC/MCContext.h
+14 −18 include/llvm/Support/GenericDomTreeConstruction.h
+4 −2 include/llvm/Transforms/Scalar/JumpThreading.h
+2 −1 include/llvm/Transforms/Utils/BasicBlockUtils.h
+13 −7 include/llvm/Transforms/Utils/Local.h
+17 −24 include/llvm/Transforms/Utils/LoopUtils.h
+29 −1 lib/Analysis/LazyValueInfo.cpp
+7 −0 lib/Analysis/ScalarEvolution.cpp
+9 −7 lib/Bitcode/Reader/BitcodeReader.cpp
+8 −8 lib/Bitcode/Writer/BitcodeWriter.cpp
+37 −1 lib/CodeGen/LiveDebugVariables.cpp
+0 −7 lib/IR/AutoUpgrade.cpp
+191 −0 lib/IR/Dominators.cpp
+5 −51 lib/MC/MCParser/AsmParser.cpp
+9 −3 lib/Support/CMakeLists.txt
+88 −26 lib/Target/AArch64/AArch64InstructionSelector.cpp
+18 −0 lib/Target/AMDGPU/AMDGPUInstrInfo.cpp
+2 −0 lib/Target/AMDGPU/AMDGPUInstrInfo.h
+1 −1 lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
+1 −1 lib/Target/AMDGPU/SIISelLowering.cpp
+8 −2 lib/Target/AMDGPU/SIInstrInfo.cpp
+0 −18 lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+0 −1 lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
+4 −1 lib/Target/PowerPC/PPCCTRLoops.cpp
+18 −2 lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
+14 −1 lib/Target/TargetLoweringObjectFile.cpp
+7 −3 lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
+7 −1 lib/Target/X86/X86.td
+10 −1 lib/Target/X86/X86AsmPrinter.cpp
+8 −4 lib/Target/X86/X86DomainReassignment.cpp
+103 −116 lib/Target/X86/X86ISelLowering.cpp
+4 −1 lib/Target/X86/X86IntrinsicsInfo.h
+11 −57 lib/Target/X86/X86RetpolineThunks.cpp
+17 −2 lib/Transforms/InstCombine/InstCombineSelect.cpp
+2 −0 lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
+172 −39 lib/Transforms/Scalar/JumpThreading.cpp
+7 −7 lib/Transforms/Scalar/LICM.cpp
+8 −41 lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
+14 −4 lib/Transforms/Utils/BasicBlockUtils.cpp
+163 −46 lib/Transforms/Utils/Local.cpp
+144 −72 lib/Transforms/Utils/LoopUtils.cpp
+14 −4 lib/Transforms/Vectorize/LoopVectorize.cpp
+3 −0 test/Analysis/LazyValueAnalysis/lvi-after-jumpthreading.ll
+1 −3 test/Bitcode/compatibility-3.6.ll
+1 −3 test/Bitcode/compatibility-3.7.ll
+2 −6 test/Bitcode/compatibility-3.8.ll
+2 −6 test/Bitcode/compatibility-3.9.ll
+2 −6 test/Bitcode/compatibility-4.0.ll
+2 −6 test/Bitcode/compatibility-5.0.ll
+131 −0 test/CodeGen/AArch64/GlobalISel/fp16-copy-gpr.mir
+75 −13 test/CodeGen/AArch64/GlobalISel/select-insert-extract.mir
+34 −0 test/CodeGen/AMDGPU/smrd.ll
+4 −2 test/CodeGen/ARM/memfunc.ll
+46 −0 test/CodeGen/PowerPC/pr36292.ll
+15 −4 test/CodeGen/SPARC/tls.ll
+0 −53 test/CodeGen/X86/avx512-intrinsics-fast-isel.ll
+0 −14 test/CodeGen/X86/avx512-intrinsics-upgrade.ll
+15 −0 test/CodeGen/X86/avx512-intrinsics.ll
+96 −0 test/CodeGen/X86/avx512-mask-op.ll
+130 −241 test/CodeGen/X86/avx512bw-intrinsics-fast-isel.ll
+0 −40 test/CodeGen/X86/avx512bw-intrinsics-upgrade.ll
+49 −0 test/CodeGen/X86/avx512bw-intrinsics.ll
+7 −0 test/CodeGen/X86/clwb.ll
+272 −167 test/CodeGen/X86/domain-reassignment.mir
+14 −0 test/CodeGen/X86/inline-asm-modifier-V.ll
+20 −0 test/CodeGen/X86/pr36553.ll
+24 −24 test/CodeGen/X86/retpoline-external.ll
+42 −0 test/CodeGen/X86/retpoline-regparm.ll
+5 −9 test/CodeGen/X86/retpoline.ll
+12 −0 test/CodeGen/X86/undef-globals-bss.ll
+3 −3 test/DebugInfo/X86/dbg-value-inlined-parameter.ll
+141 −0 test/DebugInfo/X86/live-debug-vars-discard-invalid.mir
+8 −0 test/MC/AsmParser/inline_macro_duplication.ll
+5 −0 test/MC/X86/x86-64.s
+22 −0 test/Transforms/GVN/pr36063.ll
+17 −0 test/Transforms/InstCombine/pr36362.ll
+265 −0 test/Transforms/JumpThreading/ddt-crash.ll
+40 −0 test/Transforms/JumpThreading/ddt-crash2.ll
+50 −0 test/Transforms/JumpThreading/lvi-tristate.ll
+44 −0 test/Transforms/JumpThreading/pr36133.ll
+1 −1 test/Transforms/LoopVectorize/pr30654-phiscev-sext-trunc.ll
+1 −1 test/Transforms/LoopVectorize/pr35773.ll
+35 −2 test/Transforms/LoopVectorize/reduction-small-size.ll
+2 −2 test/Transforms/LoopVectorize/vect-phiscev-sext-trunc.ll
+1 −1 test/tools/llvm-config/system-libs.windows.test
+1 −0 unittests/IR/CMakeLists.txt
+344 −0 unittests/IR/DeferredDominanceTest.cpp
2 changes: 1 addition & 1 deletion src/rustllvm/llvm-rebuild-trigger
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# If this file is modified, then llvm will be (optionally) 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.
2018-02-09
2018-03-06

0 comments on commit da81b88

Please sign in to comment.