+2010-07-10 Zoltan Varga <vargaz@gmail.com>
+
+ * mini-llvm.c (set_metadata_flag): Set metadata flags only when using the LLVM
+ mono branch.
+
2010-07-09 Zoltan Varga <vargaz@gmail.com>
* mini.h (MONO_INST_HAS_CONSTANT_LOAD): New instruction flag marking loads which load
* driver.c (mini_usage): Change the name of the --sgen flag to be
--gc=sgen and also support --gc=boehm. These flags can also be
- set on MONO_ENV_OPTIONS to propagate this to children processes.
+ set on MONO_ENV_OPTIONS to propagate this to children processes.
* main.c: Remove the MONO_VM_OPTIONS environment variable that
only supported "sgen" and "llvm" config options and instead parse
#if LLVM_CHECK_VERSION (2, 8)
LLVMValueRef md_arg;
int md_kind;
+
+ if (!IS_LLVM_MONO_BRANCH)
+ return;
md_kind = LLVMGetMDKindID (flag_name, strlen (flag_name));
md_arg = LLVMMDString ("mono", 4);
values [ins->dreg] = emit_load (ctx, bb, &builder, size, addr, dname, is_volatile);
- if (!is_volatile && (ins->flags & MONO_INST_CONSTANT_LOAD) && IS_LLVM_MONO_BRANCH) {
+ if (!is_volatile && (ins->flags & MONO_INST_CONSTANT_LOAD)) {
/*
* These will signal LLVM that these loads do not alias any stores, and
* they can't fail, allowing them to be hoisted out of loops.