Skip to content

Commit

Permalink
Fix the handling of trap instruction on ARM for register liveness ana…
Browse files Browse the repository at this point in the history
…lysis
  • Loading branch information
mxz297 authored and hainest committed Oct 16, 2019
1 parent 1090859 commit 4269498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dataflowAPI/src/liveness.C
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ ReadWriteInfo LivenessAnalyzer::calcRWSets(Instruction curInsn, Block *blk, Addr
if (curInsn.getOperation().getID() == power_op_svcs) {
isSyscall = true;
}
if (curInsn.getOperation().getID() == aarch64_op_svc) {
isSyscall = true;
}
if (isInterrupt || isSyscall) {
ret.read |= (abi->getSyscallReadRegisters());
ret.written |= (abi->getSyscallWrittenRegisters());
Expand Down

0 comments on commit 4269498

Please sign in to comment.