Fixes https://bugs.llvm.org/show_bug.cgi?id=45425 and rdar://problem/61359768
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
commit 8115e08b0536ab102311fd3ac399a52e97955ca2 (HEAD -> master, origin/master, origin/HEAD)
Author: Davide Italiano <ditaliano@apple.com>
Date: Mon Apr 6 16:35:30 2020 -0700
[MachineCSE] Don't carry the wrong location when hoisting PR: 45425 <rdar://problem/61359768> Differential Revision: https://reviews.llvm.org/D77604
llvm/lib/CodeGen/MachineCSE.cpp | ||
---|---|---|
839 | Can NewMI be a call? |
llvm/lib/CodeGen/MachineCSE.cpp | ||
---|---|---|
839 | I am probably missing the obvious, but this is already MIR. I don't think llvm does any inlining that late in the pipeline. |
llvm/lib/CodeGen/MachineCSE.cpp | ||
---|---|---|
839 | I completely missed the fact that this is MIR. Sorry. |
Can NewMI be a call?
If yes, this should be an artificial location instead, or later inlining of the call will cause an IR verifier failure because the inline location is dropped.