Move the GET_SIDE_EFFECT_INFO logic from isInstructionTriviallyDead
authorDan Gohman <gohman@apple.com>
Thu, 26 Jul 2007 16:06:08 +0000 (16:06 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 26 Jul 2007 16:06:08 +0000 (16:06 +0000)
commit37f3ee17d2192e52f436f640788b28c0b68db102
tree24593350863a6f0aa740fb353e95fb4fbb4767ac
parentc2dfd066c0343e48050a405637b2d04705c47d79
Move the GET_SIDE_EFFECT_INFO logic from isInstructionTriviallyDead
to Instruction::mayWriteToMemory, fixing a FIXME, and helping
various places that call mayWriteToMemory directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
lib/VMCore/Instruction.cpp