diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-10-26 04:43:47 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-10-26 04:43:47 +0000 |
commit | 4734fe19f6d240a911918a330a786751fe1030d9 (patch) | |
tree | a696ffa73f4980a8007f3f69051c332e1b77d620 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | dc330f75b732b4ce1beace69ae7ed8e19d89bd9f (diff) |
Hoist out some work done inside a loop doing a linear scan over all
instructions in a block. GetUnderlyingObject is more expensive than it looks as
it can, for instance, call SimplifyInstruction.
This might have some behavioural changes in odd corner cases, but only because
of some strange artefacts of the original implementation. If you were relying
on those, we can fix that by replacing this with a smarter algorithm. Change
passes the existing tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
0 files changed, 0 insertions, 0 deletions