[PATCH] D13250: Extend known bits to understand @llvm.bswap

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 09:03:39 PDT 2015


reames created this revision.
reames added reviewers: majnemer, spatel, hfinkel, regehr.
reames added a subscriber: llvm-commits.

This is a cleaned up patch from the one written by John Regehr based on the findings of the Souper superoptimizer.

When writing tests, I was surprised to find that instsimplify apparently doesn't know how to collapse bit test sequences based purely on known bits.  This required me to split my tests across both instsimplify and instcombine.  

http://reviews.llvm.org/D13250

Files:
  lib/Analysis/ValueTracking.cpp
  test/Transforms/InstCombine/bswap-known-bits.ll
  test/Transforms/InstSimplify/bswap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13250.35983.patch
Type: text/x-patch
Size: 3140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150929/10279bc5/attachment.bin>


More information about the llvm-commits mailing list