[llvm] [LoopUnswitch] Allow i1 truncs in loop unswitch (PR #89738)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 07:02:08 PDT 2024
================
@@ -1930,7 +1930,13 @@ llvm::hasPartialIVCondition(const Loop &L, unsigned MSSAThreshold,
if (!TI || !TI->isConditional())
return {};
- auto *CondI = dyn_cast<CmpInst>(TI->getCondition());
+ Instruction *CondI = dyn_cast<CmpInst>(TI->getCondition());
+ if (!CondI){
----------------
fhahn wrote:
nit: looks like this is mis-formatted
https://github.com/llvm/llvm-project/pull/89738
More information about the llvm-commits
mailing list