[PATCH] D71209: InstCombine: Don't rewrite phi-of-bitcast when the phi has other users

Connor Abbott via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 04:58:01 PST 2019


cwabbott updated this revision to Diff 233060.
cwabbott added a comment.

- Update precommitted test in this commit.
- Make the test match the original bug better. It turns out that in my attempt to make it harder for other transforms to happen beforehand and break the test, I accidentally made another transform kick in which broke it anyways. Use this form with a loop which should hopefully defeat other optimizations better.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71209

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
  llvm/test/Transforms/InstCombine/pr44242.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71209.233060.patch
Type: text/x-patch
Size: 7712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191210/d9544b71/attachment-0001.bin>


More information about the llvm-commits mailing list