Open Quuxplusone opened 7 years ago
Bugzilla Link | PR33151 |
Status | NEW |
Importance | P enhancement |
Reported by | Davide Italiano (ditaliano@apple.com) |
Reported on | 2017-05-23 22:48:18 -0700 |
Last modified on | 2020-10-08 05:11:54 -0700 |
Version | trunk |
Hardware | PC All |
CC | dberlin@dberlin.org, filcab@gmail.com, florian_hahn@apple.com, lebedev.ri@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also | PR47765 |
Another case mentioned by Roman on IRC:
> given shift iN %x, %y, %y must be [iN 0, iN N), which means all legal shift
amounts are positive, with unset sign bit
> which means, if you have shift iN %x, (sext %y), it can be simplified to
shift iN %x, (zext %y)
Related discussion:
https://groups.google.com/d/msg/llvm-dev/rM6SZXVJ6Ls/0rfn_7ZAAwAJ