mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Revert the patches adding a popcount loop idiom recognition pass.
There are still bugs in this pass, as well as other issues that are being worked on, but the bugs are crashers that occur pretty easily in the wild. Test cases have been sent to the original commit's review thread. This reverts the commits: r169671: Fix a logic error. r169604: Move the popcnt tests to an X86 subdirectory. r168931: Initial commit adding the pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,7 +26,7 @@ class TargetLowering;
|
||||
/// ScalarTargetTransformInfo interface. Different targets can implement
|
||||
/// this interface differently.
|
||||
class ScalarTargetTransformImpl : public ScalarTargetTransformInfo {
|
||||
protected:
|
||||
private:
|
||||
const TargetLowering *TLI;
|
||||
|
||||
public:
|
||||
|
@@ -75,18 +75,6 @@ public:
|
||||
/// LSR, and LowerInvoke use this interface.
|
||||
class ScalarTargetTransformInfo {
|
||||
public:
|
||||
/// PopcntHwSupport - Hardware support for population count. Compared to the
|
||||
/// SW implementation, HW support is supposed to significantly boost the
|
||||
/// performance when the population is dense, and it may or not may degrade
|
||||
/// performance if the population is sparse. A HW support is considered as
|
||||
/// "Fast" if it can outperform, or is on a par with, SW implementaion when
|
||||
/// the population is sparse; otherwise, it is considered as "Slow".
|
||||
enum PopcntHwSupport {
|
||||
None,
|
||||
Fast,
|
||||
Slow
|
||||
};
|
||||
|
||||
virtual ~ScalarTargetTransformInfo() {}
|
||||
|
||||
/// isLegalAddImmediate - Return true if the specified immediate is legal
|
||||
@@ -134,11 +122,6 @@ public:
|
||||
virtual bool shouldBuildLookupTables() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
/// getPopcntHwSupport - Return hardware support for population count.
|
||||
virtual PopcntHwSupport getPopcntHwSupport(unsigned IntTyWidthInBit) const {
|
||||
return None;
|
||||
}
|
||||
};
|
||||
|
||||
/// VectorTargetTransformInfo - This interface is used by the vectorizers
|
||||
|
Reference in New Issue
Block a user