[llvm] [GlobalISel] Call `setInstrAndDebugLoc` before `tryCombineAll` (PR #86993)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 29 08:12:07 PDT 2024
================
@@ -162,6 +162,7 @@ bool Combiner::combineMachineInstrs() {
while (!WorkList.empty()) {
MachineInstr *CurrInst = WorkList.pop_back_val();
LLVM_DEBUG(dbgs() << "\nTry combining " << *CurrInst;);
+ Builder->setInstrAndDebugLoc(*CurrInst);
----------------
shiltian wrote:
Okay, did it in table gen.
https://github.com/llvm/llvm-project/pull/86993
More information about the llvm-commits
mailing list