[llvm] r186874 - [stackprotector] Changed isNoopBitcast/sameNoopInput to take TargetLoweringBase instead of TargetLowering.
Michael Gottesman
mgottesman at apple.com
Mon Jul 22 14:05:47 PDT 2013
Author: mgottesman
Date: Mon Jul 22 16:05:47 2013
New Revision: 186874
URL: http://llvm.org/viewvc/llvm-project?rev=186874&view=rev
Log:
[stackprotector] Changed isNoopBitcast/sameNoopInput to take TargetLoweringBase instead of TargetLowering.
Both functions only use functionality from TargetLoweringBase.
rdar://13935163
Modified:
llvm/trunk/lib/CodeGen/Analysis.cpp
Modified: llvm/trunk/lib/CodeGen/Analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Analysis.cpp?rev=186874&r1=186873&r2=186874&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/Analysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/Analysis.cpp Mon Jul 22 16:05:47 2013
@@ -202,7 +202,7 @@ ISD::CondCode llvm::getICmpCondCode(ICmp
}
static bool isNoopBitcast(Type *T1, Type *T2,
- const TargetLowering& TLI) {
+ const TargetLoweringBase& TLI) {
return T1 == T2 || (T1->isPointerTy() && T2->isPointerTy()) ||
(isa<VectorType>(T1) && isa<VectorType>(T2) &&
TLI.isTypeLegal(EVT::getEVT(T1)) && TLI.isTypeLegal(EVT::getEVT(T2)));
@@ -215,7 +215,7 @@ static bool isNoopBitcast(Type *T1, Type
static bool sameNoopInput(const Value *V1, const Value *V2,
SmallVectorImpl<unsigned> &Els1,
SmallVectorImpl<unsigned> &Els2,
- const TargetLowering &TLI) {
+ const TargetLoweringBase &TLI) {
using std::swap;
bool swapParity = false;
bool equalEls = Els1 == Els2;
More information about the llvm-commits
mailing list