[Mlir-commits] [mlir] Rewrites for I2 to I8 signed and unsigned extension (PR #121298)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jan 6 04:19:16 PST 2025
================
@@ -1233,6 +1233,117 @@ static Value rewriteI4ToI8UnsignedExt(PatternRewriter &rewriter, Location loc,
return rewriter.create<vector::InterleaveOp>(loc, low, high);
}
+/// Rewrite the i2 -> i8 signed extension into a sequence of shuffles and
+/// bitwise ops that take advantage of high-level information to avoid leaving
+/// LLVM to scramble with peephole optimizations.
----------------
ziereis wrote:
Makes sense. Honestly, I just copied these comments from the other functions :D. I removed the part about the "high-level" information in the comments.
https://github.com/llvm/llvm-project/pull/121298
More information about the Mlir-commits
mailing list