[ArgPromotion] Add test with dead GEP when promoting.
authorFlorian Hahn <flo@fhahn.com>
Sun, 3 Jan 2021 15:22:46 +0000 (15:22 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sun, 3 Jan 2021 15:39:06 +0000 (15:39 +0000)
commit578c5a0c6e71b0a7b31b3af69ec6fcb176291572
tree766ec9c33a75fdd060830633193b9dc88f653fc6
parent1fc992bd864aa7e73615a47e72e82e2cf7ac73ef
[ArgPromotion] Add test with dead GEP when promoting.

This adds test coverage for the case where we do argument promotion and
there's a dead GEP that should be removed/ignored.
llvm/test/Transforms/ArgumentPromotion/aggregate-promote-dead-gep.ll [new file with mode: 0644]