[all-commits] [llvm/llvm-project] 85e31e: [DAGCombiner] Relax an assertion to an early return
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Mon May 17 01:24:06 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85e31eddf216181c6b8b26bca760f3395d621f9a
https://github.com/llvm/llvm-project/commit/85e31eddf216181c6b8b26bca760f3395d621f9a
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2021-05-17 (Mon, 17 May 2021)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
A llvm/test/CodeGen/RISCV/rvv/select-sra.ll
Log Message:
-----------
[DAGCombiner] Relax an assertion to an early return
The select-of-constants transform was asserting that its constant vector
inputs did not implicitly truncate their input without that as an
explicit precondition to the function. This patch relaxes that assertion
into an early return to skip the optimization.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D102393
More information about the All-commits
mailing list