I've left the getAggregateElement as a fast path for non-ConstantExprs
to avoid a call to getSplatValue in release builds.
Fixes PR57989.
Differential D134670
[IR][InstCombine] Support scalable vector splats ConstantExprs in Constant::getUniqueInteger(). craig.topper on Sep 26 2022, 1:18 PM. Authored by
Details I've left the getAggregateElement as a fast path for non-ConstantExprs Fixes PR57989.
Diff Detail
Event TimelineComment Actions LGTM, but please add the fast path comment to the code too, so the explanation for this code structure is obvious. |