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
the problem is that the optimized code can divide by zero even when the original code doesn't. to see this, pass 0 as an argument to f. I also independently verified on an x64-64 that the optimized code traps out with an FPE while the original code does not. it's LoopVectorize that's the culprit.
Introduce a utility to check if a SCEV expansion may introduce UB
(couldn't find a similar utility after a quick glance) and use to the
avoid vectorizing when expanding the trip count introduces UB.
Fixesllvm#89958.
https://alive2.llvm.org/ce/z/Kx2anL
this function:
is getting optimized to:
the problem is that the optimized code can divide by zero even when the original code doesn't. to see this, pass 0 as an argument to
f
. I also independently verified on an x64-64 that the optimized code traps out with an FPE while the original code does not. it's LoopVectorize that's the culprit.cc @nunoplopes @Hatsunespica
The text was updated successfully, but these errors were encountered: