[PATCH] D45723: [X86] Lowering SAD (sum of absolute differences) intrinsics to native IR (LLVM side)

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 17 10:17:36 PDT 2018


craig.topper added inline comments.


================
Comment at: lib/IR/AutoUpgrade.cpp:2389
+      if (Name.startswith("sse2.psad"))
+        N = 2;
+      else if (Name.startswith("avx2.psad"))
----------------
Can't N be calculated from CI.getType()?


Repository:
  rL LLVM

https://reviews.llvm.org/D45723





More information about the llvm-commits mailing list