C++: fix chi instr oeprands to chi instrs

This commit is contained in:
Robert Marsh
2020-01-09 11:48:18 -08:00
parent 5007fd2aa8
commit d2b225790a
3 changed files with 6 additions and 6 deletions

View File

@@ -573,13 +573,13 @@ module DefUse {
// An odd offset corresponds to the `Chi` instruction.
defOffset = oldOffset * 2 + 1 and
result = Chi(oldInstr) and
defLocation = Alias::getResultMemoryLocation(oldInstr) and
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
actualDefLocation = defLocation.getVirtualVariable()
or
// An even offset corresponds to the original instruction.
defOffset = oldOffset * 2 and
result = getNewInstruction(oldInstr) and
defLocation = Alias::getResultMemoryLocation(oldInstr) and
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
actualDefLocation = defLocation
)
or

View File

@@ -573,13 +573,13 @@ module DefUse {
// An odd offset corresponds to the `Chi` instruction.
defOffset = oldOffset * 2 + 1 and
result = Chi(oldInstr) and
defLocation = Alias::getResultMemoryLocation(oldInstr) and
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
actualDefLocation = defLocation.getVirtualVariable()
or
// An even offset corresponds to the original instruction.
defOffset = oldOffset * 2 and
result = getNewInstruction(oldInstr) and
defLocation = Alias::getResultMemoryLocation(oldInstr) and
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
actualDefLocation = defLocation
)
or