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
Event Timeline
test/CodeGen/X86/lea-opt-memop-check-1.ll | ||
---|---|---|
2 | 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 | 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 | 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.
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.