]> granicus.if.org Git - llvm/commit
Minor refactoring regarding Cast::isNoopCast(), NFC
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 5 Oct 2017 07:07:09 +0000 (07:07 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 5 Oct 2017 07:07:09 +0000 (07:07 +0000)
commite2da263c289e9c9d7bd9605b9c085cc3c97e77c8
tree81a304c9036582cbb000da3f6c6fe66e90943cfa
parent728dd9a060fb5c665e39616a699b4e5a041e2bf0
Minor refactoring regarding Cast::isNoopCast(), NFC

Summary:
FastISel::hasTrivialKill() was the only user of the "IntPtrTy" version of
Cast::isNoopCast(). According to review comments in D37894 we could instead
use the "DataLayout" version of the method, and thus get rid of the
"IntPtrTy" versions of isNoopCast() completely.

With the above done, the remaining isNoopCast() could then be simplified
a bit more.

Reviewers: arsenm

Reviewed By: arsenm

Subscribers: wdng, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314969 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/InstrTypes.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/IR/Instructions.cpp