[all-commits] [llvm/llvm-project] a5cd19: [SelectionDAG] Don't allow type legalization to cr...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Jun 13 12:52:02 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a5cd198181f937417c988e82f50461adb29aef76
https://github.com/llvm/llvm-project/commit/a5cd198181f937417c988e82f50461adb29aef76
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-06-13 (Tue, 13 Jun 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
M llvm/test/CodeGen/RISCV/rvv/fixed-vector-trunc-vp.ll
Log Message:
-----------
[SelectionDAG] Don't allow type legalization to create noop VP_TRUNCATE.
Type legalization may need to promote the result to the same type
as the input. Instead of forming a vp_truncate with the same
source and dest type, don't create any vp_truncate.
Handling in getNode like is done for ISD::TRUNCATE.
More information about the All-commits
mailing list