The ReversePredicate should have made sure the reverse predicate is
supported by target, but the check comes from early function and might
be invalid by any mistake. So it's better to double confirm it here.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/EarlyIfConversion.cpp | ||
---|---|---|
347 | This is wrong. Assert will be removed in release mode, along with the call. |
Comment Actions
Thanks for the suggestion! That sounds a good idea to me, but I took a look at current LLVM code base and didn't find an instance that using [[nodiscard]] on virtual functions. A simply googling pointed me a discussion about GCC bug.
No sure if it is the reason that we haven't used it. Anyway, let's not do it for now.
This is wrong. Assert will be removed in release mode, along with the call.