Reuse operand location when updating PHI instructions.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 11 Feb 2010 00:34:33 +0000 (00:34 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 11 Feb 2010 00:34:33 +0000 (00:34 +0000)
commit09eeac9f5f8c21621f82f9b6598eb7e34593357e
treea34403ecb722172235c75695aeba0d44349035ad
parent598b24c6d1d6eecb558051d79d8b801542663e09
Reuse operand location when updating PHI instructions.

Calling RemoveOperand is very expensive on huge PHI instructions. This makes
early tail duplication run twice as fast on the Firefox JavaScript
interpreter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95832 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TailDuplication.cpp