commit | 42cff157db9cef189027dc30645c768f632656c4 | [log] [tgz] |
---|---|---|
author | Matthias Braun <matze@braunis.de> | Tue May 19 01:40:21 2015 +0000 |
committer | Matthias Braun <matze@braunis.de> | Tue May 19 01:40:21 2015 +0000 |
tree | f4b4d368e7d782f54be3f2e99cc3473deeb61d50 | |
parent | bf27e11e02798832e4d55ff0e3e0368b06ae8895 [diff] |
SelectionDAG: Cleanup and simplify FoldConstantArithmetic This cleans up the FoldConstantArithmetic code by factoring out the case of two ConstantSDNodes into an own function. This avoids unnecessary complexity for many callers who already have ConstantSDNode arguments. This also avoids an intermeidate SmallVector datastructure and a loop over that datastructure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237651 91177308-0d34-0410-b5e6-96231b3b80d8