diff options
author | Alexey Bataev <a.bataev@outlook.com> | 2024-04-11 14:56:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 14:56:39 -0400 |
commit | 6b85fb1ef8586181fbdb02ca11a3bb0e9006aabd (patch) | |
tree | 196527be74f123f40af6e003303005c1665d2a82 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5bed6afc21c9ff9dba4aabf5ac74cb12971f634f (diff) | |
download | llvm-6b85fb1ef8586181fbdb02ca11a3bb0e9006aabd.zip llvm-6b85fb1ef8586181fbdb02ca11a3bb0e9006aabd.tar.gz llvm-6b85fb1ef8586181fbdb02ca11a3bb0e9006aabd.tar.bz2 |
[SLP]Consider (f)sub, being operand of llvm.(f)abs/icmp eq/ne 0, commutative.
If (f)sub is only operand of llvm.(f)abs or icmp eq/ne 0 (int only), we can consider it as commutative operation, just need to drop wrapping flags for ineteger
operation.
https://alive2.llvm.org/ce/z/GxvxjB for correctness of abs with dropped
flags.
Reviewers: RKSimon
Reviewed By: RKSimon
Pull Request: https://github.com/llvm/llvm-project/pull/86196
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions