Skip to content

Commit 9dda75e

Browse files
committed
Add .cpp
1 parent 92239c8 commit 9dda75e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

llvm/lib/Target/AVR/AVRTargetTransformInfo.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ class AVRTTIImpl final : public BasicTTIImplBase<AVRTTIImpl> {
4343
TLI(ST->getTargetLowering()) {}
4444

4545
bool isLSRCostLess(const TargetTransformInfo::LSRCost &C1,
46-
const TargetTransformInfo::LSRCost &C2) const override {
47-
if (C2.Insns == ~0u)
48-
return true;
49-
return 2 * C1.Insns + C1.AddRecCost + C1.SetupCost + C1.NumRegs <
50-
2 * C2.Insns + C2.AddRecCost + C2.SetupCost + C2.NumRegs;
51-
}
46+
const TargetTransformInfo::LSRCost &C2) const override;
5247
};
5348

5449
} // end namespace llvm

llvm/lib/Target/AVR/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ add_llvm_target(AVRCodeGen
2929
AVRSubtarget.cpp
3030
AVRTargetMachine.cpp
3131
AVRTargetObjectFile.cpp
32+
AVRTargetTransformInfo.cpp
3233

3334
DEPENDS
3435
intrinsics_gen

0 commit comments

Comments
 (0)