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.
[SelectionDAG] Propagate Disjoint flag. (llvm#88370)
Signed-off-by: feng.feng <feng.feng@iluvatar.com>
- Loading branch information
1 parent
26d394f
commit 8ab50dd
Showing
3 changed files
with
19 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
; RUN: llc -mtriple=x86_64 %s -start-before=x86-isel -o - | FileCheck %s | ||
|
||
define i32 @add_shl_or_disjoint(i32 %x) { | ||
; CHECK-LABEL: add_shl_or_disjoint: | ||
; CHECK: # %bb.0: | ||
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi | ||
; CHECK-NEXT: leal 165036822(,%rdi,4), %eax | ||
; CHECK-NEXT: retq | ||
%or = or disjoint i32 %x, 4027584529 | ||
%shl = shl i32 %or, 2 | ||
%add = add i32 %shl, 1234567890 | ||
ret i32 %add | ||
} | ||
|