OSDN Git Service

[CGP] In optimizeMemoryInst handle select similarly to phi
authorJohn Brawn <john.brawn@arm.com>
Tue, 3 Oct 2017 13:04:15 +0000 (13:04 +0000)
committerJohn Brawn <john.brawn@arm.com>
Tue, 3 Oct 2017 13:04:15 +0000 (13:04 +0000)
commitdbfce9ebe79e0d982337e17f0d6cc92bf70cab19
treeb7af1319eaa31739aa8d0f714b061df6c23cb6a2
parenta22fcf205ad22a13c646649f2701afe6feafc523
[CGP] In optimizeMemoryInst handle select similarly to phi

This lets us optimize away selects that perform the same address computation in
two different ways and is also the first step towards being able to handle
selects between two different, but compatible, address computations.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314794 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/X86/sink-addrmode.ll