diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-12-07 21:05:38 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-12-07 21:05:38 +0000 |
| commit | 05cc4859ad289948175382daae0f3ef8c214a8f5 (patch) | |
| tree | ec252f4fba40a3c82067d11f935e84362315d197 /llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll | |
| parent | 64a055549a976c5c30c57cbb7ff696e809c79a2e (diff) | |
| download | bcm5719-llvm-05cc4859ad289948175382daae0f3ef8c214a8f5.tar.gz bcm5719-llvm-05cc4859ad289948175382daae0f3ef8c214a8f5.zip | |
GlobalISel: simplify MachineIRBuilder interface.
MachineIRBuilder had weird before/after and beginning/end flags for the insert
point. Unfortunately the non-default means that instructions will be inserted
in reverse order which is almost never what anyone wants.
Really, I think we just want (like IRBuilder has) the ability to insert at any
C++ iterator-style point (i.e. before any instruction or before MBB.end()). So
this fixes MIRBuilders to behave like IRBuilders in this respect.
llvm-svn: 288980
Diffstat (limited to 'llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll b/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll index b1907aed4f0..c177390c040 100644 --- a/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll +++ b/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll @@ -9,14 +9,15 @@ declare i32 @llvm.eh.typeid.for(i8*) ; CHECK: name: bar ; CHECK: body: ; CHECK: bb.0: -; CHECK: successors: %bb.2{{.*}}%bb.1 +; CHECK: bb.1: +; CHECK: successors: %[[GOOD:bb.[0-9]+]]{{.*}}%[[BAD:bb.[0-9]+]] ; CHECK: EH_LABEL ; CHECK: %w0 = COPY ; CHECK: BL @foo, csr_aarch64_aapcs, implicit-def %lr, implicit %sp, implicit %w0, implicit-def %w0 ; CHECK: {{%[0-9]+}}(s32) = COPY %w0 ; CHECK: EH_LABEL -; CHECK: bb.1 +; CHECK: [[BAD]] (landing-pad): ; CHECK: EH_LABEL ; CHECK: [[PTR:%[0-9]+]](p0) = COPY %x0 ; CHECK: [[SEL:%[0-9]+]](p0) = COPY %x1 @@ -25,7 +26,7 @@ declare i32 @llvm.eh.typeid.for(i8*) ; CHECK: %x0 = COPY [[PTR_RET]] ; CHECK: %w1 = COPY [[SEL_RET]] -; CHECK: bb.2: +; CHECK: [[GOOD]]: ; CHECK: [[SEL:%[0-9]+]](s32) = G_CONSTANT i32 1 ; CHECK: {{%[0-9]+}}(s128) = G_INSERT {{%[0-9]+}}(s128), [[SEL]](s32), 64 |

