[PATCH] D106056: [CVP] processSwitch: Remove default case when switch cover all possible values.
JunMa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 16 19:15:42 PDT 2021
junparser added inline comments.
================
Comment at: llvm/test/Transforms/CorrelatedValuePropagation/basic.ll:396-397
+; CHECK-NEXT: unreachable
+; CHECK: unreachable1.split:
+; CHECK-NEXT: br label [[UNREACHABLE:%.*]]
; CHECK: unreachable:
----------------
spatel wrote:
> Why do we create this dead block?
This is done by createUnreachableSwitchDefault which uses SplitBlockPredecessors+ SplitBlock.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106056/new/
https://reviews.llvm.org/D106056
More information about the llvm-commits
mailing list