mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 22:43:53 +00:00
Say bitcast instead of bitconvert.
llvm-svn: 100720
This commit is contained in:
parent
ea8b374616
commit
8f2ebaf7ec
@ -1323,7 +1323,7 @@ Instruction *InstCombiner::visitBitCast(BitCastInst &CI) {
|
||||
|
||||
if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(Src)) {
|
||||
// Okay, we have (bitcast (shuffle ..)). Check to see if this is
|
||||
// a bitconvert to a vector with the same # elts.
|
||||
// a bitcast to a vector with the same # elts.
|
||||
if (SVI->hasOneUse() && DestTy->isVectorTy() &&
|
||||
cast<VectorType>(DestTy)->getNumElements() ==
|
||||
SVI->getType()->getNumElements() &&
|
||||
|
@ -2060,7 +2060,7 @@ unsigned CastInst::isEliminableCastPair(
|
||||
// FPEXT < FloatPt n/a FloatPt n/a
|
||||
// PTRTOINT n/a Pointer n/a Integral Unsigned
|
||||
// INTTOPTR n/a Integral Unsigned Pointer n/a
|
||||
// BITCONVERT = FirstClass n/a FirstClass n/a
|
||||
// BITCAST = FirstClass n/a FirstClass n/a
|
||||
//
|
||||
// NOTE: some transforms are safe, but we consider them to be non-profitable.
|
||||
// For example, we could merge "fptoui double to i32" + "zext i32 to i64",
|
||||
|
Loading…
x
Reference in New Issue
Block a user