Admonish that MI is not IR and virtual registers have constraints.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 17 Oct 2011 17:33:39 +0000 (17:33 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 17 Oct 2011 17:33:39 +0000 (17:33 +0000)
commit4007529d4b014f43a1c7089f9b285a67c1c9b853
treedd904079cb08573e3b3e184889864280a3a2c9f4
parent827454e6e28cfed93db990b03b720ef7c23e6917
Admonish that MI is not IR and virtual registers have constraints.

In machine code, you can't just replaceRegWith() the same way you can
replaceAllUsesWith() in IR.  Virtual registers may have different
register classes that need to be merged first.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142201 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineRegisterInfo.h