[PATCH] D124552: CodeGenPrepare: Replace constant PHI arguments with switch condition value
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 12:36:13 PDT 2022
MatzeB planned changes to this revision.
MatzeB added a comment.
You are right, the trunc one was incorrect. That makes things more complicated for my original testcase. Somehow IR optimizations think it is a good idea to shrink the size of the switch input even if it requires a `trunc`; it certainly makes recovering this pattern in CodeGenPrepare harder.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124552/new/
https://reviews.llvm.org/D124552
More information about the llvm-commits
mailing list