Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
1c18c0db
Commit
1c18c0db
authored
18 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Fit in 80-cols
llvm-svn: 30556
parent
51c95cdd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Target/X86/README.txt
+10
-9
10 additions, 9 deletions
llvm/lib/Target/X86/README.txt
with
10 additions
and
9 deletions
llvm/lib/Target/X86/README.txt
+
10
−
9
View file @
1c18c0db
...
...
@@ -544,9 +544,9 @@ entry:
br label %cond_true
cond_true: ; preds = %cond_true, %entry
%x.0.0 = phi int [ 0, %entry ], [ %tmp9, %cond_true ]
; <int> [#uses=3]
%t_addr.0.0 = phi int [ %t, %entry ], [ %tmp7, %cond_true ]
; <int> [#uses=1]
%tmp2 = getelementptr int* %a, int %x.0.0
; <int*> [#uses=1]
%x.0.0 = phi int [ 0, %entry ], [ %tmp9, %cond_true ]
%t_addr.0.0 = phi int [ %t, %entry ], [ %tmp7, %cond_true ]
%tmp2 = getelementptr int* %a, int %x.0.0
%tmp3 = load int* %tmp2 ; <int> [#uses=1]
%tmp5 = add int %t_addr.0.0, %x.0.0 ; <int> [#uses=1]
%tmp7 = add int %tmp5, %tmp3 ; <int> [#uses=2]
...
...
@@ -633,11 +633,12 @@ LBB1_1: #bb
LBB1_2: #UnifiedReturnBlock
ret
In the code above, the 'if' is turned into a 'switch' at the mid-level. It looks
like the 'lower to branches' mode could be improved a little here. In particular,
the fall-through to LBB1_3 doesn't need a branch. It would also be nice to
eliminate the redundant "cmp 6", maybe by lowering to a linear sequence of
compares if there are below a certain number of cases (instead of a binary sequence)?
In the code above, the 'if' is turned into a 'switch' at the mid-level. It
looks like the 'lower to branches' mode could be improved a little here. In
particular, the fall-through to LBB1_3 doesn't need a branch. It would also be
nice to eliminate the redundant "cmp 6", maybe by lowering to a linear sequence
of compares if there are below a certain number of cases (instead of a binary
sequence)?
//===---------------------------------------------------------------------===//
...
...
@@ -645,7 +646,7 @@ Compile:
int %test(ulong *%tmp) {
%tmp = load ulong* %tmp ; <ulong> [#uses=1]
%tmp.mask = shr ulong %tmp, ubyte 50 ; <ulong> [#uses=1]
%tmp.mask = cast ulong %tmp.mask to ubyte
; <ubyte> [#uses=1]
%tmp.mask = cast ulong %tmp.mask to ubyte
%tmp2 = and ubyte %tmp.mask, 3 ; <ubyte> [#uses=1]
%tmp2 = cast ubyte %tmp2 to int ; <int> [#uses=1]
ret int %tmp2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment