[PATCH] D45722: [X86] Lowering SAD (sum of absolute differences) intrinsics to native IR (clang side)
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 23 10:16:02 PDT 2018
craig.topper added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:8431
+ CGF.Builder.CreateZExt(CGF.Builder.CreateShuffleVector(
+ AD, llvm::UndefValue::get(BTy), ShuffleMask),
+ VTy);
----------------
You can just pass AD twice. You don't need to create an Undef value. It will get optimized later.
https://reviews.llvm.org/D45722
More information about the cfe-commits
mailing list