diff options
author | Yusuke MINATO <minato.yusuke@fujitsu.com> | 2024-10-28 23:19:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 14:19:20 +0000 |
commit | bd6ab32e6eb642f2b0b15be8c7c2a668192f07d8 (patch) | |
tree | 1f830778f4efbe89588856bd0988cf1c1d15f2e5 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 42eb54b7743df421af10ebe14b67bb79b46ecabb (diff) | |
download | llvm-bd6ab32e6eb642f2b0b15be8c7c2a668192f07d8.zip llvm-bd6ab32e6eb642f2b0b15be8c7c2a668192f07d8.tar.gz llvm-bd6ab32e6eb642f2b0b15be8c7c2a668192f07d8.tar.bz2 |
Revert "[flang] Integrate the option -flang-experimental-integer-overflow into -fno-wrapv" (#113901)
Reverts llvm/llvm-project#110063 due to the performance regression on
503.bwaves_r in SPEC2017.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 5da5236..94d3d11 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -1350,6 +1350,12 @@ bool CompilerInvocation::createFromArgs( invoc.loweringOpts.setNoPPCNativeVecElemOrder(true); } + // -flang-experimental-integer-overflow + if (args.hasArg( + clang::driver::options::OPT_flang_experimental_integer_overflow)) { + invoc.loweringOpts.setNSWOnLoopVarInc(true); + } + // Preserve all the remark options requested, i.e. -Rpass, -Rpass-missed or // -Rpass-analysis. This will be used later when processing and outputting the // remarks generated by LLVM in ExecuteCompilerInvocation.cpp. |