[PATCH] D41944: [LLVM][IR][LIT] support of 'no-overflow' flag for sdiv\udiv instructions

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 09:08:00 PDT 2018


spatel added a comment.
Herald added a reviewer: javed.absar.
Herald added subscribers: dexonsmith, steven_wu.

@magabari - what is the status of this patch?

We have another potential motivating example for ignoring overflow (specifically of sdiv by -1) in PR38239:
https://bugs.llvm.org/show_bug.cgi?id=38239

...because sdiv has that extra UB potential from a -1 divisor that doesn't exist for udiv, we can't do the sibling optimization that we did for udiv.


https://reviews.llvm.org/D41944





More information about the llvm-commits mailing list