Skip to content

Commit 798696b

Browse files
author
Simon Moll
committed
[Clang][VE] Enable fast fpop fusion in C/C++
1 parent fa0acca commit 798696b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3165,7 +3165,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,
31653165
// FP contract option is used to allow fuse across statements in frontend
31663166
// whereas respecting contract flag in backend.
31673167
Opts.setDefaultFPContractMode(LangOptions::FPM_FastHonorPragmas);
3168-
} else if (Opts.CUDA) {
3168+
} else if (Opts.CUDA || T.getArch() == llvm::Triple::ve) {
31693169
// Allow fuse across statements disregarding pragmas.
31703170
Opts.setDefaultFPContractMode(LangOptions::FPM_Fast);
31713171
}

0 commit comments

Comments
 (0)