isGuaranteedNotToBeUndefOrPoison
is taking too long to execute
#130110
Milestone
isGuaranteedNotToBeUndefOrPoison
is taking too long to execute
#130110
Using the script can reproduce this:
./gen.sh 50 | opt -passes=instsimplify --disable-output
This is primarily due to a recursive check we're performing on a phi node that contains itself:
%nonpoison = phi i64 [ 0, %start ], [ %nonpoison, %bb0 ], [ %nonpoison, %bb1 ], [ %nonpoison, %bb2 ], [ %nonpoison, %bb3 ], ..., [ %nonpoison, %bbn ], [ %nonpoison, %bb ], [ %i, %back_to_loop ]
.The following code explains why returning true after exceeding the recursion depth:
llvm-project/llvm/lib/Analysis/ValueTracking.cpp
Lines 7885 to 7889 in d6c0839
The text was updated successfully, but these errors were encountered: