diff options
| author | bors <bors@rust-lang.org> | 2019-02-10 01:33:17 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-10 01:33:17 +0000 | 
| commit | 1bfb44133d1dbabc27acbe63848b072c76f0921f (patch) | |
| tree | 73481cd7a8e3817984637f386d348b43f6bf3c73 /src/librustc_codegen_llvm/base.rs | |
| parent | abcfc3b762f2c0625d9e7f4ad70670a1e53b7b1d (diff) | |
| parent | b4a6f597934f16f89e27058a32a514c9572f148f (diff) | |
| download | rust-1bfb44133d1dbabc27acbe63848b072c76f0921f.tar.gz rust-1bfb44133d1dbabc27acbe63848b072c76f0921f.zip  | |
Auto merge of #57770 - Zoxc:no-hash-query, r=michaelwoerister
Add a query type which is always marked as red if it runs This is useful for queries which produce results which are very likely to change if their inputs do. I also expect this to be useful for end to end queries because 1) we don't need `HashStable` impls and 2) we avoid the overhead of hashing the result of large results like the AST or the HIR map. r? @michaelwoerister
Diffstat (limited to 'src/librustc_codegen_llvm/base.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/base.rs | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/base.rs b/src/librustc_codegen_llvm/base.rs index 6e1ef440a3f..d9f44ca6e45 100644 --- a/src/librustc_codegen_llvm/base.rs +++ b/src/librustc_codegen_llvm/base.rs @@ -20,6 +20,7 @@ use super::LlvmCodegenBackend; use llvm; use metadata; +use rustc::dep_graph; use rustc::mir::mono::{Linkage, Visibility, Stats}; use rustc::middle::cstore::{EncodedMetadata}; use rustc::ty::TyCtxt; @@ -145,7 +146,8 @@ pub fn compile_codegen_unit<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, let ((stats, module), _) = tcx.dep_graph.with_task(dep_node, tcx, cgu_name, - module_codegen); + module_codegen, + dep_graph::hash_result); let time_to_codegen = start_time.elapsed(); // We assume that the cost to run LLVM on a CGU is proportional to  | 
