[examples] normalize benchmark by max_clock / current_clock

This commit is contained in:
Philippe Tillet
2019-03-28 07:11:06 -04:00
parent 2c3ae0675e
commit 0c607c9392
9 changed files with 44 additions and 29 deletions

View File

@@ -234,7 +234,7 @@ ir::type* tile::type_impl(ir::module *mod, ir::type *type, storage_spec_vec_cons
// Pointer
ir::type* pointer::type_impl(ir::module*, ir::type *type, storage_spec_vec_const_ref_t storage) const{
bool is_ptr_to_const = std::find(storage.begin(), storage.end(), CONSTANT_SPACE_T) != storage.end();
return ir::pointer_type::get(type, is_ptr_to_const?4:0);
return ir::pointer_type::get(type, is_ptr_to_const?4:1);
}
// Function