OSDN Git Service

R600/SI: Only fold immediates that have one use
authorTom Stellard <thomas.stellard@amd.com>
Wed, 7 Jan 2015 22:18:27 +0000 (22:18 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 7 Jan 2015 22:18:27 +0000 (22:18 +0000)
commita3ee58333939e30b1bf9eed322822409026ef07a
tree7285c562c75885e6d6b57a400b7930a0fae9712d
parentd17010f84d06e573e04ef6c1849edf044cd85855
R600/SI: Only fold immediates that have one use

Folding the same immediate into multiple instruction will increase
program size, which can hurt performance.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225405 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIFoldOperands.cpp
test/CodeGen/R600/operand-folding.ll