llvm-rL323946-LSRTy
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 15 May 2020 16:25:16 +0000 (17:25 +0100)
committerScott Kitterman <scott@kitterman.com>
Fri, 15 May 2020 16:25:16 +0000 (17:25 +0100)
commit8399bbbf1a8c4b47c49fdfc3ad4ed39befb69e45
tree6abf228d04a16412481c35e5d1be5f1d4e81d67f
parent5a6e9dd7642f54410a53e84205f5a722a066fd8c
llvm-rL323946-LSRTy

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

Gbp-Pq: Name llvm-rL323946-LSRTy.patch
lib/Transforms/Scalar/LoopStrengthReduce.cpp