diff options
author | pvanhout <pierre.vanhoutryve@amd.com> | 2023-03-14 11:48:40 +0100 |
---|---|---|
committer | pvanhout <pierre.vanhoutryve@amd.com> | 2023-03-14 11:48:58 +0100 |
commit | 0e79106fc970b79c9b711c58d2145026b1fd2a00 (patch) | |
tree | 7c729c7ede1ff4cfba689d1c17cd20c1cc2d9419 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | |
parent | c9163901c8e118ec0b7d415ae6ef267c4b6d549f (diff) | |
download | llvm-0e79106fc970b79c9b711c58d2145026b1fd2a00.zip llvm-0e79106fc970b79c9b711c58d2145026b1fd2a00.tar.gz llvm-0e79106fc970b79c9b711c58d2145026b1fd2a00.tar.bz2 |
Revert "[DAG/AMDGPU] Use UniformityAnalysis in DAGISel"
This reverts commit 0022b5803fd4f5a4e9fcf233267c0ffa1b88f763.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 76ebdb4..4766486 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -13,7 +13,7 @@ #include "llvm/CodeGen/FunctionLoweringInfo.h" #include "llvm/ADT/APInt.h" -#include "llvm/Analysis/UniformityAnalysis.h" +#include "llvm/Analysis/LegacyDivergenceAnalysis.h" #include "llvm/CodeGen/Analysis.h" #include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineFunction.h" @@ -83,7 +83,7 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf, TLI = MF->getSubtarget().getTargetLowering(); RegInfo = &MF->getRegInfo(); const TargetFrameLowering *TFI = MF->getSubtarget().getFrameLowering(); - UA = DAG->getUniformityInfo(); + DA = DAG->getDivergenceAnalysis(); // Check whether the function can return without sret-demotion. SmallVector<ISD::OutputArg, 4> Outs; @@ -381,8 +381,8 @@ Register FunctionLoweringInfo::CreateRegs(Type *Ty, bool isDivergent) { } Register FunctionLoweringInfo::CreateRegs(const Value *V) { - return CreateRegs(V->getType(), UA && UA->isDivergent(V) && - !TLI->requiresUniformRegister(*MF, V)); + return CreateRegs(V->getType(), DA && DA->isDivergent(V) && + !TLI->requiresUniformRegister(*MF, V)); } /// GetLiveOutRegInfo - Gets LiveOutInfo for a register, returning NULL if the |