[PATCH] D139550: [DAGCombine] Fix always true condition in combineShiftToMULH
Juan Manuel Martinez CaamaƱo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 09:07:54 PST 2022
jmmartinez created this revision.
Herald added subscribers: ecnelises, hiraditya.
Herald added a project: All.
jmmartinez requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139550
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -9391,7 +9391,7 @@
// return true if U may use the lower bits of its operands
auto UserOfLowerBits = [NarrowVTSize](SDNode *U) {
- if (U->getOpcode() != ISD::SRL || U->getOpcode() != ISD::SRA) {
+ if (U->getOpcode() != ISD::SRL && U->getOpcode() != ISD::SRA) {
return true;
}
ConstantSDNode *UShiftAmtSrc = isConstOrConstSplat(U->getOperand(1));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139550.480943.patch
Type: text/x-patch
Size: 601 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221207/0b654403/attachment.bin>
More information about the llvm-commits
mailing list