Remove unnecessary check for inalloca in IPConstantPropagation
authorArthur Eubanks <aeubanks@google.com>
Mon, 4 May 2020 17:37:38 +0000 (10:37 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 5 May 2020 15:26:11 +0000 (08:26 -0700)
commitd056c0c71f954b01e2d4475b8d75ec32e842fc00
treed4a22cd1eb34f42e873a844d02b7a8ec4cb9c765
parent22829ab5faf0337144e620189e2000749ab825c9
Remove unnecessary check for inalloca in IPConstantPropagation

Summary:
This was added in https://reviews.llvm.org/D2449, but I'm not sure it's
necessary since an inalloca value is never a Constant (should be an
AllocaInst).

Reviewers: hans, rnk

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79350
llvm/lib/Transforms/IPO/IPConstantPropagation.cpp