[all-commits] [llvm/llvm-project] 16dae8: [NFCI] Cleanup range checks in Register/MCRegister
David Tenty via All-commits
all-commits at lists.llvm.org
Fri Jun 26 11:56:12 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 16dae81edc240b7c9f58e4b5ec0cf8d5ba0d847d
https://github.com/llvm/llvm-project/commit/16dae81edc240b7c9f58e4b5ec0cf8d5ba0d847d
Author: David Tenty <daltenty at ibm.com>
Date: 2020-06-26 (Fri, 26 Jun 2020)
Changed paths:
M llvm/include/llvm/CodeGen/Register.h
M llvm/include/llvm/MC/MCRegister.h
Log Message:
-----------
[NFCI] Cleanup range checks in Register/MCRegister
Summary:
by removing casts from unsigned to int that which may be implementation
defined according to C++14 (and thus trip up the XL compiler on AIX) by
just using unsigned comparisons/masks and refactor out the range
constants to cleanup things a bit while we are at it.
Reviewers: hubert.reinterpretcast, arsenm
Reviewed By: hubert.reinterpretcast
Subscribers: wdng, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D82197
More information about the All-commits
mailing list