[all-commits] [llvm/llvm-project] c1716e: [DAGCombiner][RISCV] CSE zext nneg and sext. (#82597)
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Feb 22 09:07:01 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c1716e3fcf4e43b4a328731920f76b2fce9485d0
https://github.com/llvm/llvm-project/commit/c1716e3fcf4e43b4a328731920f76b2fce9485d0
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-02-22 (Thu, 22 Feb 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/RISCV/sext-zext-trunc.ll
Log Message:
-----------
[DAGCombiner][RISCV] CSE zext nneg and sext. (#82597)
If we have a sext and a zext nneg with the same types and operand
we should combine them into the sext. We can't go the other way
because the nneg flag may only be valid in the context of the uses
of the zext nneg.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list