[llvm] [Scalarizer][DirectX] Add support for scalarization of Target intrinsics (PR #108776)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 15 12:54:18 PDT 2024
================
@@ -689,8 +698,10 @@ bool ScalarizerVisitor::splitBinary(Instruction &I, const Splitter &Split) {
return true;
}
-static bool isTriviallyScalariable(Intrinsic::ID ID) {
- return isTriviallyVectorizable(ID);
+bool ScalarizerVisitor::isTriviallyScalarizable(Intrinsic::ID ID) {
+
+ return TTI->isTargetIntrinsicTriviallyScalarizable(ID) ||
+ isTriviallyVectorizable(ID);
----------------
nikic wrote:
Also, should this check isTargetIntrinsic() first?
https://github.com/llvm/llvm-project/pull/108776
More information about the llvm-commits
mailing list