OSDN Git Service

[CGP] Make optimizeMemoryInst capable of handling multiple AddrModes
authorJohn Brawn <john.brawn@arm.com>
Tue, 3 Oct 2017 13:08:22 +0000 (13:08 +0000)
committerJohn Brawn <john.brawn@arm.com>
Tue, 3 Oct 2017 13:08:22 +0000 (13:08 +0000)
commit3db5064fa12bd86004e8e19509b01a3618af7610
tree9f1216ed653f9899b6b8db4c28541dfb124131f3
parentdbfce9ebe79e0d982337e17f0d6cc92bf70cab19
[CGP] Make optimizeMemoryInst capable of handling multiple AddrModes

Currently optimizeMemoryInst requires that all of the AddrModes it sees are
identical. This patch makes it capable of tracking multiple AddrModes, so long
as they differ in at most one field.

This patch does nothing by itself, but later patches will make use of it to
insert or reuse phi or select instructions for the differing fields.

Differential Revision: https://reviews.llvm.org/D38278

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314795 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp