[DSE.MSSA] Only use callCapturesBefore for calls.
authorFlorian Hahn <flo@fhahn.com>
Wed, 8 Apr 2020 13:22:43 +0000 (14:22 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 8 Apr 2020 14:12:33 +0000 (15:12 +0100)
commitbbbec716090243d42260c4ef47c8a7695950b52f
tree73bca2b829af1c7f5e4a25ff7b30e9c5959d9d83
parenta6353fdf3b1a4b2c3df54ee201f70a1357db7612
[DSE.MSSA] Only use callCapturesBefore for calls.

callCapturesBefore always returns ModRef , if UseInst isn't a call. As
we only call it if we already know Mod is set, this only destroys the
Must bit for non-calls.
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp