]> granicus.if.org Git - llvm/commit
InstructionSimplify: Simplify InstructionSimplify. NFC.
authorTim Northover <tnorthover@apple.com>
Thu, 11 Jul 2019 13:11:44 +0000 (13:11 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 11 Jul 2019 13:11:44 +0000 (13:11 +0000)
commit4041c43e726b498412cc199fb173adb5eac25b40
tree386dabd03389d7c125e76852b8b9bd8e7f29ec82
parent3883c857f45d93cf9bfcde6c34e11c098b824dd2
InstructionSimplify: Simplify InstructionSimplify. NFC.

The interface predates CallBase, so both it and implementation were
significantly more complicated than they needed to be. There was even
some redundancy that could be eliminated.

Should also help with OpaquePointers by not trying to derive a
function's type from it's PointerType.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365767 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InstructionSimplify.h
lib/Analysis/InstructionSimplify.cpp