A memory displacement operand in a LEA instruction can be a MachineBasicBlock. Currently if that happens the LEA optimization pass crashes with 'UNREACHABLE'.
This patch fixes that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/CodeGen/X86/lea-opt-memop-check-1.ll | ||
---|---|---|
1 ↗ | (On Diff #54634) | This is just the renamed 'test/CodeGen/X86/lea-opt-memop-check.ll'. |
Comment Actions
The corresponding bug was filed yesterday (https://llvm.org/bugs/show_bug.cgi?id=27502).
Comment Actions
Fix looks good, thanks!
test/CodeGen/X86/lea-opt-memop-check-1.ll | ||
---|---|---|
1 ↗ | (On Diff #54832) | Yes, this is just a file move, but I think we should remove this REQUIRES line so that we run this test in more configurations. |
test/CodeGen/X86/lea-opt-memop-check-2.ll | ||
1 ↗ | (On Diff #54832) | I don't think we need this REQUIRES asserts. The test will pass as is without assertions, right? |
Comment Actions
Thanks for the review.
You are right, the REQUIRES line is redundant for tests to pass, so I removed them.