[llvm-commits] [llvm] r113670 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/PeepholeOptimizer.cpp lib/Target/ARM/ARMBaseInstrInfo.cpp lib/Target/ARM/ARMBaseInstrInfo.h

Bill Wendling wendling at apple.com
Mon Sep 13 13:06:22 PDT 2010


On Sep 13, 2010, at 11:49 AM, Bill Wendling wrote:

> To do the optimization you suggest should be almost as easy as simply adding the TST* cases to the switch statements and removing the "if (CmpValue != 0) return false;" from OptimizeCompareInstr. :-)
> 
Small correction. You will need to make sure that the AND uses the same SrcReg and CmpValue as the TST instruction.

:-)

-bw






More information about the llvm-commits mailing list