[AArch64] Use MachineRegisterInfo instead of LiveIntervals to calculate liveness...
authorPete Cooper <peter_cooper@apple.com>
Wed, 22 Apr 2015 18:05:13 +0000 (18:05 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 22 Apr 2015 18:05:13 +0000 (18:05 +0000)
commitc61f7144eb93346edf699403961baf627d665af6
treefefd761dff8fa2659caa87345009d8fdaabca5af
parentf3bad3fece05e87f02d6d33af0534840d9df8801
[AArch64] Use MachineRegisterInfo instead of LiveIntervals to calculate liveness.  NFC.

The CondOpt pass currently uses LiveIntervals to set the dead flag on a def.  This patch uses MachineRegisterInfo::use_empty instead as that is equivalent to the def being dead.

This removes an instance of LiveIntervals in the pass manager pipeline and saves 3.8% of compile time on llc conpiled for AArch64.

Reviewed by Chad Rosier and Zhaoshi.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235532 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ConditionOptimizer.cpp