HomePhabricator

[PowerPC] [NFC] Cleanup xxpermdi peephole optimization

Authored by jsji on Dec 9 2019, 1:26 PM.

Description

[PowerPC] [NFC] Cleanup xxpermdi peephole optimization

Summary:
Following on from rG884351547da2, this patch cleans up the logic for xxpermdi
peephole optimizations by converting two layers of nested ifs to early breaks
and simplifying the logic.

Reviewers: hfinkel, nemanjai, jsji, lkail, #powerpc, steven.zhang

Reviewed By: #powerpc, steven.zhang

Subscribers: wuzish, steven.zhang, hiraditya, kbarton, shchenz, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71170

Patch by vddvss (Colin Samples).

Details

Committed
jsjiDec 9 2019, 1:41 PM
Reviewer
Restricted Project
Differential Revision
D71170: [PowerPC] [NFC] Cleanup xxpermdi peephole optimization
Parents
rG453c85ff0f96: [libc] Add implementation of errno and define the other macros of errno.h.
Branches
Unknown
Tags
Unknown