[llvm] [DAGCombiner] Fold trunc(build_vector(ext(x), ext(x)) -> build_vector(x,x) (PR #179857)
Liao Chunyu via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 02:57:36 PST 2026
ChunyuLiao wrote:
> Should VectorCombine also be pulling `insertelement (ext v), (ext x), index` -> `ext (insertelement v, x, index)`? cc @RKSimon
I try to implement it in my local repo.
https://github.com/ChunyuLiao/llvm-project/commit/c7354a582e91bfc9494c532bfcfc59e4022150c7
ISD::SIGN_EXTEND and ISD::ZEXT_EXTEND have not caused any changes in the current testcases.
For ISD::ANY_EXTEND, the ninja check has been running for a long time without stopping, and I suspect it might be causing a test to enter an infinite loop.
https://github.com/llvm/llvm-project/pull/179857
More information about the llvm-commits
mailing list