summaryrefslogtreecommitdiff
path: root/src/compiler_llvm
diff options
context:
space:
mode:
author TDYa127 <tdy@google.com> 2012-05-11 13:10:35 -0700
committer Shih-wei Liao <sliao@google.com> 2012-05-12 00:57:37 -0700
commit6819a91aa4e9c59a555a8fd14f4be263ae5d8dbb (patch)
tree6213f26dab78f7561d8cf687321084b57f66fc47 /src/compiler_llvm
parentd955bec688d007bd3afdde89a08691a8fe97a6a9 (diff)
GetCurrentThread can be set as pure on X86.
Change-Id: Iee1d075a21ea645de47a0f5d41db89173ed2b03a
Diffstat (limited to 'src/compiler_llvm')
-rw-r--r--src/compiler_llvm/runtime_support_builder_x86.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler_llvm/runtime_support_builder_x86.cc b/src/compiler_llvm/runtime_support_builder_x86.cc
index fa7302024d..c83c22d85a 100644
--- a/src/compiler_llvm/runtime_support_builder_x86.cc
+++ b/src/compiler_llvm/runtime_support_builder_x86.cc
@@ -50,7 +50,7 @@ void RuntimeSupportBuilderX86::TargetOptimizeRuntimeSupport() {
/*isVarArg=*/false);
InlineAsm* get_fp = InlineAsm::get(func_ty, "movl %fs:($1), $0", "=r,r", false);
CallInst* fp = irb_.CreateCall(get_fp, irb_.getPtrEquivInt(Thread::SelfOffset().Int32Value()));
- fp->setOnlyReadsMemory();
+ fp->setDoesNotAccessMemory();
irb_.CreateRet(fp);
VERIFY_LLVM_FUNCTION(*func);