Clarify that constant folding of instructions applies when all operands
authorDuncan Sands <baldrick@free.fr>
Tue, 23 Nov 2010 10:16:18 +0000 (10:16 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 23 Nov 2010 10:16:18 +0000 (10:16 +0000)
commitb9b369fa9983843c4ed77b3a35b6e9b7933955bb
tree0578f35f5923293f1c19353e16b42aadf76fc1ac
parenta9d4281cc0557ef679b7917e0741ddb01651dab1
Clarify that constant folding of instructions applies when all operands
are constant.  There was in fact one exception to this (phi nodes) - so
remove that exception (InstructionSimplify handles this so there should
be no loss).

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