[Bf-blender-cvs] [9f3ffe53bdc] functions: name some virtual registers

Jacques Lucke noreply at git.blender.org
Thu Mar 28 19:56:14 CET 2019


Commit: 9f3ffe53bdc8cde209476405a56051b61a0fa8d1
Author: Jacques Lucke
Date:   Thu Mar 28 19:55:58 2019 +0100
Branches: functions
https://developer.blender.org/rB9f3ffe53bdc8cde209476405a56051b61a0fa8d1

name some virtual registers

===================================================================

M	source/blender/functions/backends/llvm/ir_to_tuple_call.cpp
M	source/blender/modifiers/intern/MOD_functiondeform.c

===================================================================

diff --git a/source/blender/functions/backends/llvm/ir_to_tuple_call.cpp b/source/blender/functions/backends/llvm/ir_to_tuple_call.cpp
index e667663c4c4..4fa8d529cb6 100644
--- a/source/blender/functions/backends/llvm/ir_to_tuple_call.cpp
+++ b/source/blender/functions/backends/llvm/ir_to_tuple_call.cpp
@@ -61,6 +61,11 @@ namespace FN {
 		llvm::Value *fn_out_data = function->arg_begin() + 2;
 		llvm::Value *fn_out_offsets = function->arg_begin() + 3;
 		llvm::Value *context_ptr = function->arg_begin() + 4;
+		fn_in_data->setName("data_in");
+		fn_in_offsets->setName("offsets_in");
+		fn_out_data->setName("data_out");
+		fn_out_offsets->setName("offsets_out");
+		context_ptr->setName("context");
 
 		LLVMValues input_values;
 		for (uint i = 0; i < fn->signature().inputs().size(); i++) {
diff --git a/source/blender/modifiers/intern/MOD_functiondeform.c b/source/blender/modifiers/intern/MOD_functiondeform.c
index c8c913fdeca..c988c814c75 100644
--- a/source/blender/modifiers/intern/MOD_functiondeform.c
+++ b/source/blender/modifiers/intern/MOD_functiondeform.c
@@ -97,7 +97,7 @@ static void do_deformation(
 	}
 
 	clock_t end = clock();
-	printf("Time taken: %f s\n", (float)(end - start) / (float)CLOCKS_PER_SEC);
+	printf("Time taken: %f ms\n", (float)(end - start) / (float)CLOCKS_PER_SEC * 1000.0f);
 
 	FN_TUPLE_CALL_DESTRUCT_HEAP(body, fn_in, fn_out);
 	FN_function_free(fn);



More information about the Bf-blender-cvs mailing list