Skip to content

Commit bf68e3f

Browse files
committed
Disable ArgumentSplitter for non trivial types in ossa
1 parent 3113e83 commit bf68e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3166,8 +3166,8 @@ RemoveDeadArgsWhenSplitting("sroa-args-remove-dead-args-after",
31663166
llvm::cl::init(true));
31673167

31683168
bool ArgumentSplitter::split() {
3169-
if (!EnableOSSARewriteTerminator && Arg->getFunction()->hasOwnership()) {
3170-
// TODO: OSSA phi support
3169+
if (Arg->getFunction()->hasOwnership()) {
3170+
// TODO: Additional work is needed to create non-trivial projections in ossa
31713171
if (!Arg->getType().isTrivial(*Arg->getFunction()))
31723172
return false;
31733173
}

0 commit comments

Comments
 (0)