summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/upgrade-pointer-address-space.ll.bc
diff options
context:
space:
mode:
authorAyal Zaks <ayal.zaks@intel.com>2017-09-13 06:28:37 +0000
committerAyal Zaks <ayal.zaks@intel.com>2017-09-13 06:28:37 +0000
commite2a8c0758fd128306c7ea771280d4e1bf527aad3 (patch)
tree1c8f17b816e0bd82a4861338bb33211394f89f93 /llvm/test/Bitcode/upgrade-pointer-address-space.ll.bc
parent20562abc1cfb594885e920368d9334b65ebc3cf0 (diff)
downloadbcm5719-llvm-e2a8c0758fd128306c7ea771280d4e1bf527aad3.tar.gz
bcm5719-llvm-e2a8c0758fd128306c7ea771280d4e1bf527aad3.zip
[LV] Fix PR34523 - avoid generating redundant selects
When converting a PHI into a series of 'select' instructions to combine the incoming values together according their edge masks, initialize the first value to the incoming value In0 of the first predecessor, instead of generating a redundant assignment 'select(Cond[0], In0, In0)'. The latter fails when the Cond[0] mask is null, representing a full mask, which can happen only when there's a single incoming value. No functional changes intended nor expected other than surviving null Cond[0]'s. This fix follows D35725, which introduced using null to represent full masks. Differential Revision: https://reviews.llvm.org/D37619 llvm-svn: 313119
Diffstat (limited to 'llvm/test/Bitcode/upgrade-pointer-address-space.ll.bc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud