[PATCH] D71170: [PowerPC] Cleanup xxpermdi peephole optimization

Colin Samples via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 7 15:15:34 PST 2019


vddvss created this revision.
vddvss added reviewers: hfinkel, nemanjai, jsji, lkail, PowerPC.
vddvss added a project: LLVM.
Herald added subscribers: llvm-commits, shchenz, kbarton, hiraditya.

Following on from rG884351547da2 <https://reviews.llvm.org/rG884351547da27e76e14bef5fe20c3e3cb0e89acd>, this patch cleans up the logic for `xxpermdi`
peephole optimizations by converting two layers of nested `if`s to early breaks
and simplifying the logic.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71170

Files:
  llvm/lib/Target/PowerPC/PPCMIPeephole.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71170.232722.patch
Type: text/x-patch
Size: 10772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191207/e91c5ffd/attachment.bin>


More information about the llvm-commits mailing list