You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cxx122
changed the title
[Bug] Inconsistent caused by 127i8*127i8*numi64 after using compute_inline
[Bug] Inconsistency caused by 127i8*127i8*numi64 after using compute_inline
Aug 11, 2022
Not sure if this is real bug or an undefined behavior similar to #12377. In C standard (which I guess TVM should be consistent with), signed integer overflow leads to undefined behavior. Therefore, if there is any signed overflow happening, the results are not guaranteed to be "consistent".
Thanks for confirming the UB. I think this level of guarantee (i.e., consistency over UB) is often not available in TVM as well as traditional compilers that have been engineered for decades due to its cost. Maybe you can tune the fuzzer a bit to filter false alarms by invalid numerics as well as integer overflows. :-)
The tir program before compute_inline:
The tir program after compute_inline:
Actual behavior
Environment
Operating System: Ubuntu 18.04, TVM version: tag0.9.0 [d361585]
Steps to reproduce
The text was updated successfully, but these errors were encountered: