Open Quuxplusone opened 6 years ago
Bugzilla Link | PR38461 |
Status | NEW |
Importance | P normal |
Reported by | Nuno Lopes (nunoplopes@sapo.pt) |
Reported on | 2018-08-06 08:00:00 -0700 |
Last modified on | 2018-08-06 13:08:10 -0700 |
Version | trunk |
Hardware | All All |
CC | david.majnemer@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, regehr@cs.utah.edu, sanjoy@playingwithpointers.com, spatel+llvm@rotateright.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Same bug with:
%15 = sdiv i2 1, %14
=>
%. = icmp eq i2 %14, -2
%15 = select i1 %., i2 0, i2 %14
and another:
Name: func54454002
%14 = udiv i2 %3, %13
%15 = mul nsw i2 %13, %14
=>
%. = urem i2 %3, %13
%15 = sub i2 %3, %.