Skip to content
Commit 9cff4711 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] fold udiv with common factor

((X *nuw Y) >> Z) / X --> Y >> Z

https://alive2.llvm.org/ce/z/x3kKnq

This is similar to 6b869be8 / 8da2fa85, but I have
not found a signed equivalent, so it's just an unsigned
match for now.
parent 6876004f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment