We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I invoke function in TII like: bool test = TII->isTriviallyReMaterializable(*MI); (An example, no significance)
bool test = TII->isTriviallyReMaterializable(*MI);
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp index 68fff9bc221d..fd53728b54fa 100644 --- a/llvm/lib/CodeGen/LiveIntervals.cpp +++ b/llvm/lib/CodeGen/LiveIntervals.cpp @@ -517,6 +517,7 @@ bool LiveIntervals::computeDeadValues(LiveInterval &LI, if ((I == LI.begin() || std::prev(I)->end < Def) && !VNI->isPHIDef()) { MachineInstr *MI = getInstructionFromIndex(Def); MI->setRegisterDefReadUndef(VReg); + bool test = TII->isTriviallyReMaterializable(*MI); } }
it results in compiling error below:
Solution: include #include "llvm/CodeGen/TargetInstrInfo.h" in llvm/include/llvm/CodeGen/LiveIntervals.h
#include "llvm/CodeGen/TargetInstrInfo.h"
llvm/include/llvm/CodeGen/LiveIntervals.h
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I invoke function in TII like:
bool test = TII->isTriviallyReMaterializable(*MI);
(An example, no significance)it results in compiling error below:
Solution:
include
#include "llvm/CodeGen/TargetInstrInfo.h"
in
llvm/include/llvm/CodeGen/LiveIntervals.h
The text was updated successfully, but these errors were encountered: