[llvm-commits] [dragonegg] r104491 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Mon May 24 06:07:56 PDT 2010
Author: baldrick
Date: Mon May 24 08:07:56 2010
New Revision: 104491
URL: http://llvm.org/viewvc/llvm-project?rev=104491&view=rev
Log:
Port commit 104042 (johannes) from llvm-gcc:
Mark reads from register variables as sideeffect. The
point of this is to create an order dependency when there
are multiple uses of the same register; the scheduler could
screw them up (see testcase, which is next checkin). 7993104.
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=104491&r1=104490&r2=104491&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Mon May 24 08:07:56 2010
@@ -2954,7 +2954,7 @@
const char *Name = extractRegisterName(decl);
Name = LLVM_GET_REG_NAME(Name, decode_reg_name(Name));
- InlineAsm *IA = InlineAsm::get(FTy, "", "={"+std::string(Name)+"}", false);
+ InlineAsm *IA = InlineAsm::get(FTy, "", "={"+std::string(Name)+"}", true);
CallInst *Call = Builder.CreateCall(IA);
Call->setDoesNotThrow();
More information about the llvm-commits
mailing list