This is an archive of the discontinued LLVM Phabricator instance.

InstCombine: Fold bitcast of vector to FP scalar
ClosedPublic

Authored by arsenm on Nov 16 2016, 6:43 PM.

Details

Reviewers
majnemer

Diff Detail

Event Timeline

arsenm updated this revision to Diff 78309.Nov 16 2016, 6:43 PM
arsenm retitled this revision from to InstCombine: Fold bitcast of vector to FP scalar.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
majnemer added inline comments.
lib/Analysis/ConstantFolding.cpp
120–124

Is splitting out this code into a function related to the correctness of the change? If not, I'd leave it alone.

123

This comment doesn't seem correct now.

arsenm added inline comments.Nov 21 2016, 6:11 PM
lib/Analysis/ConstantFolding.cpp
120–124

It was re-used in an earlier version but then I merged the FP and int paths back. I can commit this refactor separately

arsenm updated this revision to Diff 80018.Dec 1 2016, 6:46 PM

Factor out refactor

majnemer accepted this revision.Dec 7 2016, 12:45 PM
majnemer added a reviewer: majnemer.

LGTM

lib/Analysis/ConstantFolding.cpp
103

This comment seems wrong, DestTy can be floating point.

This revision is now accepted and ready to land.Dec 7 2016, 12:45 PM
arsenm closed this revision.Dec 7 2016, 1:07 PM

r288978