[all-commits] [llvm/llvm-project] e722d9: [DAG] Avoid a crash when checking size of scalable...
Philip Reames via All-commits
all-commits at lists.llvm.org
Mon Feb 5 14:30:38 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e722d9662dd8cdd3be9e434b057593e97a7d4417
https://github.com/llvm/llvm-project/commit/e722d9662dd8cdd3be9e434b057593e97a7d4417
Author: Philip Reames <preames at rivosinc.com>
Date: 2024-02-05 (Mon, 05 Feb 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/RISCV/and-add-lsr.ll
Log Message:
-----------
[DAG] Avoid a crash when checking size of scalable type in visitANDLike
Fixes https://github.com/llvm/llvm-project/issues/80744. This transform
doesn't handled vectors at all, The fixed length ones pass the first
check, but would fail the constant operand checks which immediate follow.
This patch takes the simplest approach, and just guards the transform
for scalar integers.
More information about the All-commits
mailing list