nv50/ir: Add support for merge-s to the ConstantFolding pass
authorHans de Goede <hdegoede@redhat.com>
Thu, 5 Nov 2015 13:32:36 +0000 (14:32 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 6 Nov 2015 23:13:31 +0000 (18:13 -0500)
commit428506ece2c7627392d0f02c7f83021caa46bb4f
tree1a6d01b788d4a2c05932baea267921c766cf5b46
parent2437f0085372355980864454964749ac8231ca44
nv50/ir: Add support for merge-s to the ConstantFolding pass

This allows later passes like LoadPropagation to properly deal with 64
bit immediates.

If the new 64 bit load this introduces does not get optimized away then
split64BitOpPostRA() will split this into 2 instructions again.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp