commit | 0115e164bad632572e2cfbaf72f0f0882d5319de | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Oct 30 22:18:41 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Oct 30 22:18:41 2009 +0000 |
tree | e1e3d79537c4854d8ab8a456330534a5fe807054 | |
parent | 287db0c23c9188c563cc2ff449733f233535496e [diff] |
Fix MachineLICM to use the correct virtual register class when unfolding loads for hoisting. getOpcodeAfterMemoryUnfold returns the opcode of the original operation without the load, not the load itself, MachineLICM needs to know the operand index in order to get the correct register class. Extend getOpcodeAfterMemoryUnfold to return this information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85622 91177308-0d34-0410-b5e6-96231b3b80d8