[llvm-commits] [llvm] r122343 - /llvm/trunk/lib/Transforms/Utils/SimplifyInstructions.cpp

Frits van Bommel fvbommel at gmail.com
Tue Dec 21 09:53:00 PST 2010


On Tue, Dec 21, 2010 at 6:16 PM, Chris Lattner <clattner at apple.com> wrote:
> Ok.  If you're going to delay deleting instructions, it might be worthwhile to drop their operands so that "dead" instructions don't cause hasOneUse() checks to fail.

SimplifyInstruction() doesn't create any new instructions, so it
shouldn't have any need for hasOneUse().
'grep hasOneUse InstructionSimplify.cpp ConstantFolding.cpp' seems to
confirms this.




More information about the llvm-commits mailing list