mirror of
https://github.com/intel/intel-graphics-compiler.git
synced 2025-11-04 08:21:06 +08:00
[Autobackout][FuncReg]Revert of change: 1c28c742da
Fix build with LLVM 12 Removed TargetLibraryInfo.h include from AddressSpaceAliasAnalysis.cpp as this was causing treat-warning-as-error buildbreak, Added casts to fix warnings, Replaced ConstantPropagation and IPConstantPropagation passes with IPSCCP passes, reasoning here: https://lists.llvm.org/pipermail/llvm-dev/2020-July/143788.html Original pull-request: intel/intel-graphics-compiler#171 Signed-off-by: Zoltán Böszörményi zboszor@gmail.com Co-authored-by: Pawel Szymichowski pawel.szymichowski@intel.com Co-authored-by: Zoltán Böszörményi zboszor@pr.hu
This commit is contained in:
committed by
igcbot
parent
f7267a3557
commit
32944e60e9
@ -85,7 +85,6 @@ IN THE SOFTWARE.
|
||||
#include "llvmWrapper/IR/Instructions.h"
|
||||
#include <llvm/IR/InstIterator.h>
|
||||
#include <llvm/IR/InlineAsm.h>
|
||||
#include <llvmWrapper/IR/DerivedTypes.h>
|
||||
#include "common/LLVMWarningsPop.hpp"
|
||||
#include <algorithm>
|
||||
#include "Probe/Assertion.h"
|
||||
@ -1320,7 +1319,7 @@ int DeSSA::checkInsertElementAlias(
|
||||
//
|
||||
// If found, return the actual vector size;
|
||||
// otherwise, return 0.
|
||||
IGCLLVM::FixedVectorType* VTy = cast<IGCLLVM::FixedVectorType>(IEI->getType());
|
||||
VectorType* VTy = cast<VectorType>(IEI->getType());
|
||||
IGC_ASSERT(nullptr != VTy);
|
||||
int nelts = (int)VTy->getNumElements();
|
||||
AllIEIs.resize(nelts, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user