[llvm-commits] [llvm] r150630 - in /llvm/trunk: include/llvm/CodeGen/MachineInstr.h lib/CodeGen/LiveIntervalAnalysis.cpp lib/CodeGen/MachineInstr.cpp

Evan Cheng evan.cheng at apple.com
Thu Feb 16 17:39:34 PST 2012


I think this is wrong. You're using a reverse iterator. --MII actually moves down, not up.

Evan

On Feb 15, 2012, at 3:21 PM, Lang Hames wrote:

> 
> +MachineInstr* MachineInstr::getBundleStart() {
> +  if (!isInsideBundle())
> +    return this;
> +  MachineBasicBlock::reverse_instr_iterator MII(this);
> +  --MII;
> +  while (MII->isInsideBundle())
> +    --MII;
> +  return &*MII;
> +}
> +
> bool MachineInstr::isStackAligningInlineAsm() const {
>   if (isInlineAsm()) {
>     unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm();
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list