aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorYusuke MINATO <minato.yusuke@fujitsu.com>2024-10-25 15:20:23 +0900
committerGitHub <noreply@github.com>2024-10-25 15:20:23 +0900
commit96bb375f5cedcfcc5dcd96296ba54ff933b39d4d (patch)
treed7deaa3560712eee9205d04f86cf28b8549e4b1c /flang/lib/Frontend/CompilerInvocation.cpp
parent3a4ccebb5c5142c15fb6d72aedadb27205ef33d5 (diff)
downloadllvm-96bb375f5cedcfcc5dcd96296ba54ff933b39d4d.zip
llvm-96bb375f5cedcfcc5dcd96296ba54ff933b39d4d.tar.gz
llvm-96bb375f5cedcfcc5dcd96296ba54ff933b39d4d.tar.bz2
[flang] Integrate the option -flang-experimental-integer-overflow into -fno-wrapv (#110063)
nsw is now added to do-variable increment when -fno-wrapv is enabled as GFortran seems to do. That means the option introduced by #91579 isn't necessary any more. Note that the feature of -flang-experimental-integer-overflow is enabled by default.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 94d3d11..5da5236 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -1350,12 +1350,6 @@ 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.