[llvm-commits] [llvm] r126159 - /llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Feb 21 17:06:31 PST 2011


On Feb 21, 2011, at 3:40 PM, Evan Cheng wrote:

> Author: evancheng
> Date: Mon Feb 21 17:40:47 2011
> New Revision: 126159
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=126159&view=rev
> Log:
> Skipping over debugvalue instructions to determine whether the split spot is in a IT block. rdar://9030770
> 
> Modified:
>    llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
> 
> Modified: llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp?rev=126159&r1=126158&r2=126159&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp (original)
> +++ llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp Mon Feb 21 17:40:47 2011
> @@ -95,6 +95,9 @@
> bool
> Thumb2InstrInfo::isLegalToSplitMBBAt(MachineBasicBlock &MBB,
>                                      MachineBasicBlock::iterator MBBI) const {
> +  while (MBBI->isDebugValue())
> +    ++MBBI;
> +

Does this work if the last instruction in the basic block is a DBG_VALUE?






More information about the llvm-commits mailing list