OSDN Git Service

[CGP] Limit converting phi types to simple loads and stores
authorDavid Green <david.green@arm.com>
Mon, 14 Sep 2020 11:08:34 +0000 (12:08 +0100)
committerDavid Green <david.green@arm.com>
Mon, 14 Sep 2020 11:08:34 +0000 (12:08 +0100)
commit06fb4e90649f264a129d3ad2a08fd3492ee78651
tree1374955ca3d3f0c306770539648d9c0eb7c1188b
parentf715d81c9df3fb3e047a54899fc749f57c84aeb5
[CGP] Limit converting phi types to simple loads and stores

Instcombine limits converting phi types to simple loads and stores. This
does the same in codegenprepare, not processing phis that are not
simple.

Note that volatile loads/store ISel will happily convert between float
and int. Atomics are more likely to always be integer. This just keeps
things simple and doesn't process either.

Differential Revision: https://reviews.llvm.org/D83770
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/CodeGen/AArch64/convertphitype.ll