aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorYusuke MINATO <minato.yusuke@fujitsu.com>2024-12-10 16:26:53 +0900
committerGitHub <noreply@github.com>2024-12-10 16:26:53 +0900
commita88677edc0792534ba3157bf7d7a1b98e470f2fb (patch)
tree14d8fe7f58ae9c4c866fc540c471ee75e65a4bd6 /flang/lib/Frontend/CompilerInvocation.cpp
parent411196b9bb1953372726348deb1bc77abfa7d900 (diff)
downloadllvm-a88677edc0792534ba3157bf7d7a1b98e470f2fb.zip
llvm-a88677edc0792534ba3157bf7d7a1b98e470f2fb.tar.gz
llvm-a88677edc0792534ba3157bf7d7a1b98e470f2fb.tar.bz2
Reland "[flang] Integrate the option -flang-experimental-integer-overflow into -fno-wrapv" (#118933)
This relands #110063. The performance issue on 503.bwaves_r is found not to be related to the patch, and is resolved by fbd89bcc when LTO is enabled.
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 0b79c95..648b88e 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -1362,12 +1362,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.