Skip to content

Commit cf60110

Browse files
committed
Remove volatile load/store.
1 parent 7d24aa3 commit cf60110

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/Runtime/LLVMEmitIR.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ namespace LLVMJIT
122122
, functionInstance(inFunctionInstance)
123123
, llvmFunction(inLLVMFunction)
124124
, irBuilder(context)
125-
{}
125+
{}
126126

127127
void emit();
128128

@@ -784,7 +784,6 @@ namespace LLVMJIT
784784
auto pointer = coerceByteIndexToPointer(byteIndex,imm.offset,llvmMemoryType); \
785785
auto load = irBuilder.CreateLoad(pointer); \
786786
load->setAlignment(1<<imm.alignmentLog2); \
787-
load->setVolatile(true); \
788787
push(conversionOp(load,asLLVMType(ValueType::valueTypeId))); \
789788
}
790789
#define EMIT_STORE_OP(valueTypeId,name,llvmMemoryType,naturalAlignmentLog2,conversionOp) \
@@ -795,7 +794,6 @@ namespace LLVMJIT
795794
auto pointer = coerceByteIndexToPointer(byteIndex,imm.offset,llvmMemoryType); \
796795
auto memoryValue = conversionOp(value,llvmMemoryType); \
797796
auto store = irBuilder.CreateStore(memoryValue,pointer); \
798-
store->setVolatile(true); \
799797
store->setAlignment(1<<imm.alignmentLog2); \
800798
}
801799

@@ -1634,4 +1632,4 @@ namespace LLVMJIT
16341632
{
16351633
return EmitModuleContext(module,moduleInstance).emit();
16361634
}
1637-
}
1635+
}

0 commit comments

Comments
 (0)