[llvm] Add numerical sanitizer (PR #85916)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 03:33:41 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff d4f5cf267936a082196b0c22fe45c730b24b9fe0 bc248edaa5a2669eadec85178208a99c93a8dec1 -- llvm/include/llvm/Transforms/Instrumentation/NumericalStabilitySanitizer.h llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp llvm/include/llvm/Bitcode/LLVMBitCodes.h llvm/lib/Bitcode/Reader/BitcodeReader.cpp llvm/lib/Bitcode/Writer/BitcodeWriter.cpp llvm/lib/Passes/PassBuilder.cpp llvm/lib/Transforms/Utils/CodeExtractor.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
index 8d5be4cb3c..9cf93ecfef 100644
--- a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
@@ -1245,8 +1245,7 @@ Value *NumericalStabilitySanitizer::handleExt(FPExtInst &Ext, Type *VT,
   //     fpext double  %1 to x86_fp80  ->  fpext float    s(%1) to double
 
   // See (A) above.
-  Value *Source =
-      ExtendedSourceTy ? Map.getShadow(OrigSource) : OrigSource;
+  Value *Source = ExtendedSourceTy ? Map.getShadow(OrigSource) : OrigSource;
   Type *SourceTy = ExtendedSourceTy ? ExtendedSourceTy : OrigSourceTy;
   // See (B) above.
   if (SourceTy == ExtendedVT)

``````````

</details>


https://github.com/llvm/llvm-project/pull/85916


More information about the llvm-commits mailing list