unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob ae1a7ac59c6e9c19e4f6e83552c4c9ab98556f4e 1872 bytes (raw)
name: gnu/packages/patches/llvm-rL323946-LSRTy.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
commit ab60b05a472e8651cbe53c19513b7e62b9ff32df
Author: Mikael Holmen <mikael.holmen@ericsson.com>
Date:   Thu Feb 1 06:38:34 2018 +0000

    [LSR] Don't force bases of foldable formulae to the final type.
    
    Summary:
    Before emitting code for scaled registers, we prevent
    SCEVExpander from hoisting any scaled addressing mode
    by emitting all the bases first. However, these bases
    are being forced to the final type, resulting in some
    odd code.
    
    For example, if the type of the base is an integer and
    the final type is a pointer, we will emit an inttoptr
    for the base, a ptrtoint for the scale, and then a
    'reverse' GEP where the GEP pointer is actually the base
    integer and the index is the pointer. It's more intuitive
    to use the pointer as a pointer and the integer as index.
    
    Patch by: Bevin Hansson
    
    Reviewers: atrick, qcolombet, sanjoy
    
    Reviewed By: qcolombet
    
    Subscribers: llvm-commits
    
    Differential Revision: https://reviews.llvm.org/D42103
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323946 91177308-0d34-0410-b5e6-96231b3b80d8

diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 332c074a1df..4b8e2286ed9 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -4993,7 +4993,7 @@ Value *LSRInstance::Expand(const LSRUse &LU, const LSRFixup &LF,
       // Unless the addressing mode will not be folded.
       if (!Ops.empty() && LU.Kind == LSRUse::Address &&
           isAMCompletelyFolded(TTI, LU, F)) {
-        Value *FullV = Rewriter.expandCodeFor(SE.getAddExpr(Ops), Ty);
+        Value *FullV = Rewriter.expandCodeFor(SE.getAddExpr(Ops), nullptr);
         Ops.clear();
         Ops.push_back(SE.getUnknown(FullV));
       }

debug log:

solving ae1a7ac59c ...
found ae1a7ac59c in https://yhetil.org/guix-patches/20190423094936.27413-1-anothersms@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/20190423094936.27413-1-anothersms@gmail.com/
diff --git a/gnu/packages/patches/llvm-rL323946-LSRTy.patch b/gnu/packages/patches/llvm-rL323946-LSRTy.patch
new file mode 100644
index 0000000000..ae1a7ac59c

1:12: trailing whitespace.
    
1:19: trailing whitespace.
    
1:26: trailing whitespace.
    
1:28: trailing whitespace.
    
1:30: trailing whitespace.
    
Checking patch gnu/packages/patches/llvm-rL323946-LSRTy.patch...
Applied patch gnu/packages/patches/llvm-rL323946-LSRTy.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

index at:
100644 ae1a7ac59c6e9c19e4f6e83552c4c9ab98556f4e	gnu/packages/patches/llvm-rL323946-LSRTy.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).