[PATCH] D84493: [InstCombine] Disable branch predicate canonicalization

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 00:17:15 PDT 2020


yrouban created this revision.
yrouban added reviewers: nikic, efriedma, kuhar.
Herald added a project: LLVM.

Introduce a flag to enable/disable the branch predicate canonicalization in InstCombine.
Fix all sensitive tests to pass with the flag set to ///off//.

This is the next step to move the branch predicate canonicalization transformation from InstCombine to SimplifyCFG. See the motivation in the description of the first patch D84491 <https://reviews.llvm.org/D84491>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84493

Files:
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/branch.ll
  llvm/test/Transforms/InstCombine/canonicalize_branch.ll
  llvm/test/Transforms/InstCombine/select.ll
  llvm/test/Transforms/InstCombine/xor-of-icmps-with-extra-uses.ll
  llvm/test/Transforms/InstCombine/xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84493.280342.patch
Type: text/x-patch
Size: 10557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200724/d45d01a6/attachment-0001.bin>


More information about the llvm-commits mailing list