forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[InstCombine] Regenerate test checks (NFC)
- Loading branch information
1 parent
1d20b00
commit 00a10ef
Showing
3 changed files
with
87 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4 | ||
; RUN: opt < %s -passes=instcombine -S | grep " sub " | count 1 | ||
; PR2047 | ||
|
||
define i32 @l(i32 %a, i32 %b, i32 %c, i32 %d) { | ||
entry: | ||
%b.neg = sub i32 0, %b ; <i32> [#uses=1] | ||
%c.neg = sub i32 0, %c ; <i32> [#uses=1] | ||
%sub4 = add i32 %c.neg, %b.neg ; <i32> [#uses=1] | ||
%sub6 = add i32 %sub4, %d ; <i32> [#uses=1] | ||
ret i32 %sub6 | ||
%b.neg = sub i32 0, %b ; <i32> [#uses=1] | ||
%c.neg = sub i32 0, %c ; <i32> [#uses=1] | ||
%sub4 = add i32 %c.neg, %b.neg ; <i32> [#uses=1] | ||
%sub6 = add i32 %sub4, %d ; <i32> [#uses=1] | ||
ret i32 %sub6 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters