[Mesa-dev] [PATCH] ir_to_mesa: fix copy propagation

Christoph Bumiller e0425955 at student.tuwien.ac.at
Wed Jan 26 04:30:04 PST 2011

The current copy propagation code would propagate TEMP[0].x from (6)
into TEMP[1].x from (8) in the following, which is clearly wrong:

  6:   MOV TEMP[1].x, TEMP[0].xxxx
  7:   MOV TEMP[0].x, TEMP[0].yyyy
  8:   MOV TEMP[0].y, TEMP[1].xxxx
  9:   ADD TEMP[1].x, TEMP[0].zzzz, IMM[0].yyyy
 10:   MOV TEMP[0].z, TEMP[1].xxxx

Possible patch and a small program to check this attached.
Tested with llvmpipe.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-ir_to_mesa-fix-copy-propagation-if-a-saved-MOV-s-inp.patch
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110126/1b976975/attachment.ksh>

More information about the mesa-dev mailing list