diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-06-03 16:13:16 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-06-04 07:04:37 -0400 |
commit | 23a116c8c446f82ec5e2d2337c3253d0dc9c75b5 (patch) | |
tree | d1d8512e09e66f885e64ee0fcf72e7390e9f3461 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8937450e8581a8a135c61ff083828e6603755ef5 (diff) | |
download | llvm-23a116c8c446f82ec5e2d2337c3253d0dc9c75b5.zip llvm-23a116c8c446f82ec5e2d2337c3253d0dc9c75b5.tar.gz llvm-23a116c8c446f82ec5e2d2337c3253d0dc9c75b5.tar.bz2 |
[InstCombine] convert lshr to ashr to eliminate cast op
This is similar to b865eead7657 ( D103617 ) and fixes:
https://llvm.org/PR50575
41b71f718b94c6f12b did this and more (noted with TODO
comments in the tests), but it didn't handle the case
where the destination is narrower than the source, so
it got reverted.
This is a simple match-and-replace. If there's evidence
that the TODO cases are useful, we can revisit/extend.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions