@@ -500,11 +500,11 @@ fn thin_lto(
500
500
let module_name = module_name_to_str ( module_name) ;
501
501
502
502
// If (1.) the module hasn't changed, and (2.) none of the modules
503
- // it imports from nor exports to have changed, *and* (3.) the
504
- // import and export sets themselves have not changed from the
505
- // previous compile when it was last ThinLTO'ed, then we can re-use
506
- // the post-ThinLTO version of the module. Otherwise, freshly
507
- // perform LTO optimization.
503
+ // it imports from have changed, *and* (3.) the import and export
504
+ // sets themselves have not changed from the previous compile when
505
+ // it was last ThinLTO'ed, then we can re-use the post-ThinLTO
506
+ // version of the module. Otherwise, freshly perform LTO
507
+ // optimization.
508
508
//
509
509
// (Note that globally, the export set is just the inverse of the
510
510
// import set.)
@@ -531,13 +531,8 @@ fn thin_lto(
531
531
let imports_all_green = curr_imports
532
532
. iter ( )
533
533
. all ( |imported_module| green_modules. contains_key ( imported_module) ) ;
534
- let exports_all_green = curr_exports
535
- . iter ( )
536
- . all ( |exported_module| green_modules. contains_key ( exported_module) ) ;
537
-
538
534
if imports_all_green
539
535
&& equivalent_as_sets ( prev_imports, curr_imports)
540
- && exports_all_green
541
536
&& equivalent_as_sets ( prev_exports, curr_exports)
542
537
{
543
538
let work_product = green_modules[ module_name] . clone ( ) ;
0 commit comments