diff options
author | Nikita Popov <npopov@redhat.com> | 2023-10-12 09:32:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 09:32:17 +0200 |
commit | 127ed9ae266ead58aa525f74f4c86841f6674793 (patch) | |
tree | 07690e94311954b9772fc4b2def60ed89aa9ff4f /llvm/lib/CodeGen/MachineSink.cpp | |
parent | 956482de13107b640cffedd08610fcccd98f708f (diff) | |
download | llvm-127ed9ae266ead58aa525f74f4c86841f6674793.zip llvm-127ed9ae266ead58aa525f74f4c86841f6674793.tar.gz llvm-127ed9ae266ead58aa525f74f4c86841f6674793.tar.bz2 |
[PowerPC] Use zext instead of anyext in custom and combine (#68784)
This custom combine currently converts `and(anyext(x),c)` into
`anyext(and(x,c))`. This is not correct, because the original expression
guaranteed that the high bits are zero, while the new one sets them to
undef.
Emit `zext(and(x,c))` instead.
Fixes https://github.com/llvm/llvm-project/issues/68783.
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions