HomePhabricator

[InstCombine] fold udiv with common factor from muls with nuw

Description

[InstCombine] fold udiv with common factor from muls with nuw

Unfortunately, sdiv isn't as simple because of UB due to overflow.

This fold is mentioned in PR38239:
https://bugs.llvm.org/show_bug.cgi?id=38239

Details

Committed
spatelJul 26 2018, 12:22 PM
Parents
rL338058: Make framework-header-fix process copied headers
Branches
Unknown
Tags
Unknown