When we fail to sink an instruction, we must make sure not to modify the function; otherwise, we end up in an infinite loop because CodeGenPrepare iterates until it doesn't make any changes.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D34773
[CodeGenPrepare] Don't create dead instructions in addrmode sinking ClosedPublic Authored by efriedma on Jun 28 2017, 12:41 PM.
Details Summary When we fail to sink an instruction, we must make sure not to modify the function; otherwise, we end up in an infinite loop because CodeGenPrepare iterates until it doesn't make any changes.
Diff Detail
Revision Contents
Diff 104491 lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/X86/sink-addrmode.ll
|