Skip to content

Commit bf9ca51

Browse files
committed
---
yaml --- r: 294395 b: refs/heads/tensorflow c: 8cc013e h: refs/heads/master i: 294393: 7044b4a 294391: be15774
1 parent 9a793e7 commit bf9ca51

File tree

17 files changed

+55
-1179
lines changed

17 files changed

+55
-1179
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: 0de91dcc1e43f817aef43f4bc796d113cd9846b8
819+
refs/heads/tensorflow: 8cc013ed3f84dd6a9507e5f366b002676473bf4b
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/include/swift/AST/DiagnosticsSIL.def

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -470,27 +470,6 @@ NOTE(switch_value_case_doesnt_yield, none, "missing yield in the %0 case",
470470
NOTE(try_branch_doesnt_yield, none, "missing yield when error is "
471471
"%select{not |}0thrown", (bool))
472472

473-
// OS log optimization dianostics.
474-
475-
ERROR(oslog_message_argument_not_found, none, "no argument of type %0 in "
476-
" the os log call", (Identifier))
477-
478-
ERROR(oslog_dynamic_message, none, "os log methods must be passed a string "
479-
"interpolation literal. 'OSLogMessage' must not be constructed explicitly",
480-
())
481-
482-
ERROR(oslog_const_evaluation_error, none, "constant evaluating 'OSLogMessage'"
483-
"implementation failed.", ())
484-
485-
ERROR(oslog_non_constant_message, none, "'OSLogMessage' struct is "
486-
"unoptimizable: 'init' is not constant evaluable", ())
487-
488-
ERROR(oslog_non_constant_interpolation, none, "'OSLogInterpolation' struct is "
489-
"unoptimizable: 'init' is not constant evaluable", ())
490-
491-
ERROR(oslog_property_not_constant, none, "'OSLogInterpolation.%0' is not a "
492-
"constant: formatting and privacy options must be literals", (StringRef))
493-
494473
#ifndef DIAG_NO_UNDEF
495474
# if defined(DIAG)
496475
# undef DIAG

branches/tensorflow/include/swift/AST/KnownIdentifiers.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ IDENTIFIER_(ErrorType)
178178
IDENTIFIER(Code)
179179
IDENTIFIER_(nsError)
180180

181-
// Custom string interpolation type used by os log APIs.
182-
IDENTIFIER(OSLogMessage)
183-
184181
#undef IDENTIFIER
185182
#undef IDENTIFIER_
186183
#undef IDENTIFIER_WITH_NAME

branches/tensorflow/include/swift/SILOptimizer/PassManager/Passes.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ PASS(SerializeSILPass, "serialize-sil",
309309
"Utility pass. Serializes the current SILModule")
310310
PASS(YieldOnceCheck, "yield-once-check",
311311
"Check correct usage of yields in yield-once coroutines")
312-
PASS(OSLogOptimization, "os-log-optimization", "Optimize os log calls")
313312
PASS(BugReducerTester, "bug-reducer-tester",
314313
"sil-bug-reducer Tool Testing by Asserting on a Sentinel Function")
315314
PASS_RANGE(AllPasses, AADumper, BugReducerTester)

branches/tensorflow/lib/SILOptimizer/LoopTransforms/LICM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ hoistSpecialInstruction(std::unique_ptr<LoopNestSummary> &LoopSummary,
347347
llvm_unreachable("LICM: Could not perform must-sink instruction");
348348
}
349349
}
350-
LLVM_DEBUG(llvm::errs() << " Successfully hosited and sank pair\n");
350+
LLVM_DEBUG(llvm::errs() << " Successfully hoisted and sank pair\n");
351351
} else {
352352
LLVM_DEBUG(llvm::dbgs() << "Hoisted RefElementAddr "
353353
<< *static_cast<RefElementAddrInst *>(Inst));

branches/tensorflow/lib/SILOptimizer/Mandatory/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ silopt_register_sources(
2020
SemanticARCOpts.cpp
2121
SILGenCleanup.cpp
2222
YieldOnceCheck.cpp
23-
OSLogOptimization.cpp
2423
)

0 commit comments

Comments
 (0)