Luke Lau
79435de8a5
[ConstantFold] Support scalable constant splats in ConstantFoldCastInstruction ( #133207 )
...
Previously only fixed vector splats were handled. This adds supports for
scalable vectors too by allowing ConstantExpr splats.
We need to add the extra V->getType()->isVectorTy() check because a
ConstantExpr might be a scalar to vector bitcast.
By allowing ConstantExprs this also allow fixed vector ConstantExprs to
be folded, which causes the diffs in
llvm/test/Analysis/ValueTracking/known-bits-from-operator-constexpr.ll
and llvm/test/Transforms/InstSimplify/ConstProp/cast-vector.ll. I can
remove them from this PR if reviewers would prefer.
Fixes #132922
2025-04-03 16:24:56 +01:00
..
2025-03-25 12:57:24 +00:00
2025-03-11 21:19:14 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-26 21:03:50 +00:00
2025-03-25 12:57:24 +00:00
2025-03-26 21:03:50 +00:00
2025-04-02 08:46:02 +08:00
2025-03-15 21:32:48 +00:00
2025-02-09 11:20:20 +00:00
2025-03-25 12:57:24 +00:00
2025-03-26 21:03:50 +00:00
2025-03-25 12:57:24 +00:00
2025-03-28 15:51:29 +08:00
2025-03-25 12:57:24 +00:00
2025-02-09 11:20:20 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-28 15:51:29 +08:00
2025-02-10 08:40:28 +08:00
2025-03-25 12:57:24 +00:00
2025-03-26 21:03:50 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-04 16:49:24 +08:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-28 15:51:29 +08:00
2025-03-25 12:57:24 +00:00
2025-03-21 09:24:56 +00:00
2025-04-03 16:24:56 +01:00
2025-04-03 16:24:56 +01:00
2025-03-25 12:57:24 +00:00
2025-03-26 21:03:50 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-31 21:28:39 +01:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-26 21:03:50 +00:00
2025-03-28 21:48:59 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-31 21:28:39 +01:00
2025-03-25 12:57:24 +00:00
2025-03-26 21:03:50 +00:00
2025-03-31 21:28:39 +01:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-03-25 12:57:24 +00:00
2025-02-09 11:20:20 +00:00
2025-03-28 21:48:59 +00:00
2025-03-28 21:48:59 +00:00
2025-03-14 15:33:32 +08:00
2025-03-28 21:48:59 +00:00
2025-03-28 21:48:59 +00:00
2025-03-25 12:57:24 +00:00