[PATCH] D104569: [SimplifyCFG] Fix SimplifyBranchOnICmpChain to be undef/poison safe.

Hyeongyu Kim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 21 03:23:18 PDT 2021


hyeongyukim updated this revision to Diff 353317.
hyeongyukim added a comment.

I modified my code to add the freeze instruction only if extra values are poison.
And I also pass dominator tree to isGuaranteedNotToBePosion, but unnecessary freeze instruction is still being added.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104569/new/

https://reviews.llvm.org/D104569

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/switch_create-custom-dl.ll
  llvm/test/Transforms/SimplifyCFG/switch_create.ll
  llvm/test/Transforms/SimplifyCFG/switch_msan.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104569.353317.patch
Type: text/x-patch
Size: 10521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/9a4d2f06/attachment.bin>


More information about the llvm-commits mailing list