mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[Hexagon] Do not insert instructions before PHI nodes
llvm-svn: 297141
This commit is contained in:
parent
1952e5932f
commit
f71862d680
@ -2375,7 +2375,9 @@ bool BitSimplification::simplifyExtractLow(MachineInstr *MI,
|
||||
DebugLoc DL = MI->getDebugLoc();
|
||||
MachineBasicBlock &B = *MI->getParent();
|
||||
unsigned NewR = MRI.createVirtualRegister(FRC);
|
||||
auto MIB = BuildMI(B, MI, DL, HII.get(ExtOpc), NewR)
|
||||
auto At = MI->isPHI() ? B.getFirstNonPHI()
|
||||
: MachineBasicBlock::iterator(MI);
|
||||
auto MIB = BuildMI(B, At, DL, HII.get(ExtOpc), NewR)
|
||||
.addReg(R, 0, SR);
|
||||
switch (ExtOpc) {
|
||||
case Hexagon::A2_sxtb:
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llc -march=hexagon < %s
|
||||
; RUN: llc -march=hexagon -disable-hcp < %s
|
||||
; REQUIRES: asserts
|
||||
|
||||
target datalayout = "e-m:e-p:32:32-i1:32-i64:64-a:0-v32:32-n16:32"
|
||||
|
Loading…
Reference in New Issue
Block a user