Teach instsimplify to use the constant folder where appropriate for
authorChandler Carruth <chandlerc@gmail.com>
Fri, 28 Dec 2012 14:23:29 +0000 (14:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 28 Dec 2012 14:23:29 +0000 (14:23 +0000)
commite949aa1c91132094a9073c82a8aef729fa8c9eca
treea94456b93a2b3d12296e4564cffa817508acdd5a
parentc98bd9f1a79adffe73acd337b6f7f9afa6bae078
Teach instsimplify to use the constant folder where appropriate for
constant folding calls. Add the initial tests for this which show that
now instsimplify can simplify blindingly obvious code patterns expressed
with both intrinsics and library calls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171194 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InstructionSimplify.h
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/call.ll [new file with mode: 0644]