From: Matt Turner Date: Mon, 5 Jan 2015 02:04:13 +0000 (-0800) Subject: i965/cfg: Fix end_ip of last basic block. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f813bf53d1c728c888ceffae2140f32697b8ffd;p=mesa.git i965/cfg: Fix end_ip of last basic block. start_ip and end_ip are inclusive. Increases instruction counts in 64 shaders in shader-db, likely indicative of them previously being misoptimized. --- diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp index 02149e2e3b1..62cc23970d6 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.cpp +++ b/src/mesa/drivers/dri/i965/brw_cfg.cpp @@ -313,7 +313,7 @@ cfg_t::cfg_t(exec_list *instructions) } } - cur->end_ip = ip; + cur->end_ip = ip - 1; make_block_array(); }