[clang] [llvm] [SVE ACLE] Allow default zero initialisation for svcount_t. (PR #69321)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 6 03:29:02 PST 2025
================
@@ -1738,6 +1738,12 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
if (const auto *NC = dyn_cast<NoCFIValue>(C))
return getValue(NC->getGlobalValue());
+ if (VT == MVT::aarch64svcount) {
+ assert(C->isNullValue() && "Can only zero this target type!");
+ return DAG.getNode(ISD::BITCAST, getCurSDLoc(), VT,
----------------
paulwalker-arm wrote:
I agree, it looks like an omission on my part when landing the original work. If you're happy to fix then that would be great, otherwise just let me know and I'll follow up.
https://github.com/llvm/llvm-project/pull/69321
More information about the llvm-commits
mailing list