Commit 4aeacc17 authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Change threshold for has_value tolerance

Used to avoid the case where  1e-12 is used and is matched as zero errornously resulting in removing the call with the incorrect value.
parent 3fc986f0
......@@ -784,7 +784,7 @@ auto skip_broadcasts_converts(Ms... ms)
}
template <class T>
inline auto has_value(T x, float tolerance = 1e-6)
inline auto has_value(T x, float tolerance = 1e-12)
{
return skip_broadcasts_converts(make_basic_pred_matcher([=](instruction_ref ins) {
if(ins->name() != "@literal")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment