Don't introduce reinterprets in find/lower intrinsics#7776
Conversation
|
Failures appear unrelated |
|
Thank you for this @rootjalex. @prasmish- Isn't this essentially what we were talking about this morning? Can you please take a look if it helps your case? |
|
@pranavb-ca No problem! Btw, I have a PR that I am working on that is aiming to improve handling of reinterpret/casts that do reinterprets, for ARM and HVX codegen. If you / your team are working on something similar, it might be useful to coordinate. I've been running into a lot of headaches with HexagonOptimize for that PR. |
|
An example: On ARM, it's better to rewrite this to: and target |
|
Thanks, @rootjalex. |
As discussed with @abadams , later lowering stages expect to see int/uint reinterprets to have been normalized to casts. This PR removes the places in
find_intrinsicsandlower_intrinsicsthat introducereinterpret, and usecastinstead.