[all-commits] [llvm/llvm-project] a0b025: [PowerPC] [NFC] Cleanup xxpermdi peephole optimiza...

jsji via All-commits all-commits at lists.llvm.org
Mon Dec 9 13:42:18 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a0b025b8e7c615199fe918a4e98489b48af5793d
      https://github.com/llvm/llvm-project/commit/a0b025b8e7c615199fe918a4e98489b48af5793d
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2019-12-09 (Mon, 09 Dec 2019)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp

  Log Message:
  -----------
  [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 `if`s 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).




More information about the All-commits mailing list