From 9008c8943bf23187b62e445e4da472698a93346a Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Tue, 18 Feb 2020 15:43:01 +0100 Subject: [PATCH] [CGP] Precommit tests for D74228. --- .../AArch64/overflow-intrinsics.ll | 45 +++++++++++++++++++ .../CodeGenPrepare/X86/overflow-intrinsics.ll | 45 +++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/test/Transforms/CodeGenPrepare/AArch64/overflow-intrinsics.ll b/test/Transforms/CodeGenPrepare/AArch64/overflow-intrinsics.ll index a2225e49548..e1408ffdeb1 100644 --- a/test/Transforms/CodeGenPrepare/AArch64/overflow-intrinsics.ll +++ b/test/Transforms/CodeGenPrepare/AArch64/overflow-intrinsics.ll @@ -98,6 +98,51 @@ define i64 @uaddo3_math_overflow_used(i64 %a, i64 %b, i64* %res) nounwind ssp { ret i64 %Q } +; Instcombine folds (a + b