aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc
diff options
context:
space:
mode:
authorGravatar Eli Bendersky <eliben@google.com>2017-06-20 09:48:02 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-20 09:54:15 -0700
commit46cac5fd635c07ac174ff3c10885698d218a3cb7 (patch)
tree30ad4203a27abb76b880b648cd2bfee60cdf124e /tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc
parente35dc9b5ce3e47d148ae7b13804cbedc2b9115da (diff)
[XLA] Remove xla_emit_alias_scope flag
This flag doesn't appear to be used anywhere (non-default value) and is propagated fairly deep; if reintroduced it should go through extra backend options. PiperOrigin-RevId: 159573033
Diffstat (limited to 'tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc')
-rw-r--r--tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc b/tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc
index 02710ff57f..d451255774 100644
--- a/tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc
+++ b/tensorflow/compiler/xla/service/llvm_ir/alias_analysis.cc
@@ -18,7 +18,6 @@ limitations under the License.
#include <unordered_set>
#include "external/llvm/include/llvm/IR/MDBuilder.h"
-#include "tensorflow/compiler/xla/legacy_flags/alias_analysis_flags.h"
#include "tensorflow/compiler/xla/service/llvm_ir/llvm_util.h"
#include "tensorflow/compiler/xla/service/logical_buffer.h"
#include "tensorflow/compiler/xla/types.h"
@@ -87,12 +86,6 @@ llvm::MDNode* AliasAnalysis::GetAliasDomain() {
llvm::MDNode* AliasAnalysis::GetAliasScopeMetadataForBuffer(
const BufferAllocation::Slice& buffer_slice, llvm::MDNode* domain) {
- legacy_flags::AliasAnalysisFlags* flags =
- legacy_flags::GetAliasAnalysisFlags();
- if (!flags->xla_emit_alias_scope) {
- return nullptr;
- }
-
// While we could synthesize an alias.scope, doing so is not more profitable
// than LLVM's default behavior.
if (buffer_slice.allocation() == kParameterAllocation) {
@@ -109,12 +102,6 @@ llvm::MDNode* AliasAnalysis::GetAliasScopeMetadataForBuffer(
llvm::MDNode* AliasAnalysis::GetNoaliasMetadataForBuffer(
const BufferAllocation::Slice& buffer_slice, llvm::MDNode* domain,
const BufferAssignment& assignment, const HloInstruction& hlo) {
- legacy_flags::AliasAnalysisFlags* flags =
- legacy_flags::GetAliasAnalysisFlags();
- if (!flags->xla_emit_alias_scope) {
- return nullptr;
- }
-
// We want to construct a list of buffers which:
//
// 1. Do not alias the given buffer.