[PATCH] D54593: [X86] Fix PR39658: avoid duplicated successors in condibr merge

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 20 16:20:04 PST 2018


xur updated this revision to Diff 174854.
xur added a comment.

This is the updated version.  We will bail out the optimization is there are PHIs preventing the merge.

@Max: could you tell you real test case to see if this fixes the problem.

Note that this patch still leave this optimization off by default. I will have separated patch to turn if on later.


https://reviews.llvm.org/D54593

Files:
  lib/Target/X86/X86CondBrFolding.cpp
  lib/Target/X86/X86TargetMachine.cpp
  test/CodeGen/X86/pr39658.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54593.174854.patch
Type: text/x-patch
Size: 6095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181121/fe5614e1/attachment.bin>


More information about the llvm-commits mailing list