[clang] [CIR][CIRGen][Builtin][X86] Compress Store Intrinsics (PR #169648)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri May 8 10:54:57 PDT 2026
================
@@ -86,6 +86,17 @@ static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Location loc,
return maskVec;
}
+static mlir::Value emitX86CompressStore(CIRGenBuilderTy &builder,
+ mlir::Location loc,
+ ArrayRef<mlir::Value> ops) {
+ auto resultTy = cast<cir::VectorType>(ops[1].getType());
+ mlir::Value maskValue =
+ getMaskVecValue(builder, loc, ops[2], resultTy.getSize());
+ mlir::Value ptr = ops[0];
----------------
andykaylor wrote:
I do see any value in saving this to a temporary. I realize classic codegen does that too, but I don't see any value in it there either. It could be an artifact of some earlier state.
https://github.com/llvm/llvm-project/pull/169648
More information about the cfe-commits
mailing list