mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 10:13:13 +00:00
Encode a cost of zero as a cost of 1.
llvm-svn: 27745
This commit is contained in:
parent
36ceea9e96
commit
81fa159ca9
@ -381,7 +381,9 @@ int main() {
|
||||
|
||||
// CostSat - The cost of this operation saturated to two bits.
|
||||
unsigned CostSat = ShufTab[i].Cost;
|
||||
if (CostSat > 3) CostSat = 3;
|
||||
if (CostSat > 4) CostSat = 4;
|
||||
if (CostSat == 0) CostSat = 1;
|
||||
--CostSat; // Cost is now between 0-3.
|
||||
|
||||
unsigned OpNum = ShufTab[i].Op ? ShufTab[i].Op->OpNum : 0;
|
||||
assert(OpNum < 16 && "Too few bits to encode operation!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user