diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-23 17:09:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-23 17:09:26 +0000 |
commit | cbe762b5d165c565feb98b745e93b71d208a1e36 (patch) | |
tree | 0f6f0b75c5f50a24a09c41e4224b54fc1c4c0123 /include/llvm/Target | |
parent | f1ab49e83abccd9f7b885e74172419249bd5fd8a (diff) | |
download | external_llvm-cbe762b5d165c565feb98b745e93b71d208a1e36.zip external_llvm-cbe762b5d165c565feb98b745e93b71d208a1e36.tar.gz external_llvm-cbe762b5d165c565feb98b745e93b71d208a1e36.tar.bz2 |
Revert r106263, "Fold the ShrinkDemandedOps pass into the regular DAGCombiner pass,"... it was causing both 'file' (with clang) and 176.gcc (with llvm-gcc) to be miscompiled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 7ba67e4..b44fa71 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -773,12 +773,14 @@ public: SelectionDAG &DAG; bool LegalTys; bool LegalOps; + bool ShrinkOps; SDValue Old; SDValue New; explicit TargetLoweringOpt(SelectionDAG &InDAG, - bool LT, bool LO) : - DAG(InDAG), LegalTys(LT), LegalOps(LO) {} + bool LT, bool LO, + bool Shrink = false) : + DAG(InDAG), LegalTys(LT), LegalOps(LO), ShrinkOps(Shrink) {} bool LegalTypes() const { return LegalTys; } bool LegalOperations() const { return LegalOps; } |