[PowerPC] fix a miscompile for Solaris build
This commit is contained in:
parent
af0a8b8317
commit
7591d21032
|
|
@ -494,7 +494,7 @@ bool PPCLoopInstrFormPrep::prepareBasesForCommoningChains(Bucket &CBucket) {
|
||||||
// All elements are increased by FirstOffset.
|
// All elements are increased by FirstOffset.
|
||||||
// The number of chains should be sqrt(EleNum).
|
// The number of chains should be sqrt(EleNum).
|
||||||
if (!SawChainSeparater)
|
if (!SawChainSeparater)
|
||||||
ChainNum = (unsigned)sqrt(EleNum);
|
ChainNum = (unsigned)sqrt((double)EleNum);
|
||||||
|
|
||||||
CBucket.ChainSize = (unsigned)(EleNum / ChainNum);
|
CBucket.ChainSize = (unsigned)(EleNum / ChainNum);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue