changeset b56cbe6b63a2 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b56cbe6b63a2
description:
gpu-compute: Fix bug with return in cfg
Connecting basic blocks would stop too early in kernels where ret was
not the
last instruction. This patch allows basic blocks after the ret
instruction
to be properly connected.
diffstat:
src/gpu-compute/kernel_cfg.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 0b2aaf6f5c78 -r b56cbe6b63a2 src/gpu-compute/kernel_cfg.cc
--- a/src/gpu-compute/kernel_cfg.cc Tue Sep 13 23:08:34 2016 -0400
+++ b/src/gpu-compute/kernel_cfg.cc Tue Sep 13 23:11:20 2016 -0400
@@ -139,7 +139,7 @@
GPUStaticInst* last = lastInstruction(bb.get());
if (last->o_type == Enums::OT_RET) {
bb->successorIds.insert(exit_bb->id);
- break;
+ continue;
}
if (last->o_type == Enums::OT_BRANCH) {
const uint32_t target_pc = last->getTargetPc();
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev