Displaying 2 results from an estimated 2 matches for "rnumop".
Did you mean:
rnumops
2013 Jul 30
0
[LLVMdev] creating SCEV taking too long
...e scMulExpr:
case scSMaxExpr:
case scUMaxExpr: {
const SCEVNAryExpr *LC = cast<SCEVNAryExpr>(LHS);
const SCEVNAryExpr *RC = cast<SCEVNAryExpr>(RHS);
// Lexicographically compare n-ary expressions.
unsigned LNumOps = LC->getNumOperands(), RNumOps = RC->getNumOperands();
+ if (LNumOps != RNumOps) {
+ return (int)LNumOps - (int)RNumOps;
+ }
for (unsigned i = 0; i != LNumOps; ++i) {
if (i >= RNumOps)
return 1;
And the compile time is cut down from 45s to 1s.
This will give diffe...
2013 Jul 30
4
[LLVMdev] creating SCEV taking too long
On Jul 29, 2013, at 4:08 PM, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:
> Hi,
>
> We have a benchmark where there are 128 MAD computations in a loop. (See the attached IR.) Creating SCEVs for these expressions takes a long time, making the compile time too long. E.g., running opt with the “indvars” pass only takes 45 seconds.
>
> It seems that the majority of the time is