[all-commits] [llvm/llvm-project] 716353: [DAGCombiner] When combining (sext_inreg (zext X), ...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Jun 15 11:47:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7163539466d7e8930416e55dd9fd29891f8239f2
https://github.com/llvm/llvm-project/commit/7163539466d7e8930416e55dd9fd29891f8239f2
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-06-15 (Thu, 15 Jun 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Log Message:
-----------
[DAGCombiner] When combining (sext_inreg (zext X), VT) -> (sext X) don't pass along the sext_inreg VT.
ISD::SIGN_EXTEND is only supposed to have one operand, but we
were creating it with 2 operands.
Since we basically never check for extra operands this went
unnoticed.
More information about the All-commits
mailing list